uvex_transients.phase_space.stages#
The stages of a recovery map as operations on its directory.
A map is a directory of files (see files and
PHASE_SPACE_FILES), and each stage reads some of them and writes others, so that
a stage can be run, repeated or changed without the ones before it:
run_experiment()makespoints.ecsv(withproducts=Falseto stop
- there), and then the products below. It is
the only expensive stage, and the header of the points records everything needed to rebuild the experiment.
fit_map()makesmap.ecsv(andoverlay.ecsv, for a sampler that has
- an overlay) from the points;
write_map()does the same for an experiment that is already in memory. They rebuild the sampler, so they need the survey schedule and scikit-learn.
plot_files()makesmap.pngfrom the files alone, and so needs neither.compare_maps()differences themap.ecsvof two maps, again from the
files alone.
Up to four files are written to the directory of a map:
points.ecsvEvery measured point: its coordinates,
ksuccesses out ofntries, and what the sampler records of it. It is rewritten after every batch and read back byresume.map.ecsvThe fitted map on a grid (see
grid_table()): the success fraction with a 1 sigma interval (_lo,_hi), and the quantities of the sampler.overlay.ecsvFor a sampler that has an overlay (the canonical one) and with
overlay, the measured peak luminosity and half-decline time of draws from every shipped transient class, in the band of the map.map.pngThe figure of the map.
Every stage accepts both formats of points file, so the files of a published release can be fitted again and drawn.
Running a map needs the optional phase_space extra.
Attributes
The files compare_maps writes, by key. |
Functions
|
Difference the |
|
Fit the map of the points in a directory, and write |
|
Return the title of the figure of a map. |
|
Draw the map of a directory from its |
|
Run an experiment of any sampler and write its data products and figure. |
|
Write |