freesample is gone. The freesample case is now handled by a sequence of gridsample calls.
A lot of the grid logic (parsing cells and evaluating the PDF) is now handled in a new class (DensityGrid). The original LintSampler class creates one or several instances of DensityGrid, calls the 'evaluate' method on them, then can sample as normal.
In addition to the existing options for input cells, cells can be one or several pre-made DensityGrid instances, either with or without the densities already evaluated on them.
pdf is now an optional parameter in LintSampler. This is to allow the option of a pre-made DensityGrid which has already had densities evaluated. (error is raised if pdf is None and the DensityGrid instance doesn't have pdf evaluated).
Major changes:
freesample
is gone. Thefreesample
case is now handled by a sequence ofgridsample
calls.DensityGrid
). The originalLintSampler
class creates one or several instances ofDensityGrid
, calls the 'evaluate' method on them, then can sample as normal.cells
,cells
can be one or several pre-madeDensityGrid
instances, either with or without the densities already evaluated on them.pdf
is now an optional parameter in LintSampler. This is to allow the option of a pre-made DensityGrid which has already had densities evaluated. (error is raised ifpdf
isNone
and theDensityGrid
instance doesn't have pdf evaluated).