More detailed documentation on v2dl3-vegas and its new features
Improved exception handling (individual runs no longer crash an entire runlist).
Minor code refactors
The King PSF param text files have been produced by Alisha thus far. I've provided a few on the wiki link in README_vegas.md as well as info on whom to contact about them.
Full Changelog:
READMEs
Added README_vegas.md
Reference to README_vegas.md added to README.md
fillRESPONSE.py
Added support for PSF_KING format
genHDUList.py
Keyword arguments are stacking up, so we'll pack/unpack them
v2dl3_for_vegas.py
Add --psf_king flag and control flow
Now continues processing runlist if a run throws exception. Prints skipped runs to the user at the end.
Move and refactor runlist_to_file_pair() to match other functions and utilize list comprehension
Pack/unpacking kwargs
VegasDataSource.py
--psf_king control flow
fillRESPONSE_not_safe.py
--psf_king control flow
irfloader.py
getIRF() index loading moved to helper function get_axes_edges() to reduce complexity
helper function get_psf_axes_values() matches IRF values to the closest King PSF parameter bins
get_king_psf_params() builds the PSF table from the bin's PSF parameters
util.py
load_psf_king_parameters() used to load the PSF king parameters file into memory. Loads the parameter values as well as their bin values (index).
For VEGAS Review:
link to the PSF parameters files if you'd like to see them. Link also in README_vegas.md
util.py
new function loads PSF params from the file
irfloader.py -
get_axes_edges() is simply moving part of getIRF() to a helper method to reduce complexity. Unrelated to King PSF
get_psf_axes_values() matches the azimuth, zenith, and noise to their closest bins in the PSF params
get_king_psf_params() is where we load the PSF values from the line matching the params.
The for loop on 489 runs multiple times; there will be a line matching the parameters for each offset. That is why much of the PSF loading runs per "offset array"
This is the last of our major feature updates!
v2dl3-vegas
and its new featuresThe King PSF param text files have been produced by Alisha thus far. I've provided a few on the wiki link in README_vegas.md as well as info on whom to contact about them.
Full Changelog:
READMEs
fillRESPONSE.py
genHDUList.py
v2dl3_for_vegas.py
--psf_king
flag and control flowrunlist_to_file_pair()
to match other functions and utilize list comprehensionVegasDataSource.py
--psf_king
control flowfillRESPONSE_not_safe.py
--psf_king
control flowirfloader.py
get_axes_edges()
to reduce complexityget_psf_axes_values()
matches IRF values to the closest King PSF parameter binsget_king_psf_params()
builds the PSF table from the bin's PSF parametersutil.py
load_psf_king_parameters()
used to load the PSF king parameters file into memory. Loads the parameter values as well as their bin values (index).For VEGAS Review:
link to the PSF parameters files if you'd like to see them. Link also in README_vegas.md
util.py
irfloader.py -
get_axes_edges()
is simply moving part ofgetIRF()
to a helper method to reduce complexity. Unrelated to King PSFget_psf_axes_values()
matches the azimuth, zenith, and noise to their closest bins in the PSF paramsget_king_psf_params()
is where we load the PSF values from the line matching the params.