-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to Container classes (#1123)
* change prefix and members of leakage and concentration containers - Writing `ConcentrationContainers` lead to columns named "concentration_concentration_cog", now removed the redundant prefix - same for leakage parameters: use "leakage" prefix, and remove that prefix from the names. - renamed `leakage1_pixel` to `one_pixel_percent` and `leakage1_intensity` to `one_pixel_intensity` to be clearer what they mean * added ImageParametersContainer to group various parameter containers * fixed typo * added EventIndexContainer and TelEventIndexContainers These contain just basic event header data like tel_id and obs_id * added telescope type_id to TelIndexContainer * rename leakage parameters the old LeakageContainer had the wrong prefix and confusingly named fields. Now a LeakageContainer becomes the following when turned into columns of an output Table: - leakage_intensity_1pix - leakage_percent_1pix - leakage_intensity_2pix - leakage_percent_2pix * new containers, renaming, and deprecation - Added `DeprecatedField` class to be able to describe fields that will disappear soon - Introduce `EventIndexContainer` and `TelEventIndexContainer` to store event index info (event_id, tel_id, obs_id), and deprecated places where these were used elsewhere - added a MorphologyContainer for morphology parameters (calculation will be added in separate PR) - added a `SimulatedShowerDistribution` container, for storing the sim_telarray thrown shower historgrams. * Update SimTelEventSource - fill index containers correctly - fix bug where missing input_url didn't always fil correctly. - allow `~` and env vars in input filenames * add "Set" to standard traits * fix forgotten rename in test * fix test using leakage parameters (renamed) * fix tutorial * fix a few style warnings * change percent to fraction in LeakageContainer * also fix test * updated names of leakage parameters again leakage_fraction_X -> leakage_pixels_X * update leakage names in calculation * again updated leakage names * fixed one more place I forgot to rename * used @maxnoe's suggestion of a Deprecated wrapper class - added Deprecated - changed deprecated members to use it - also added a "version" attribute - added test * help -> reason (to avoid keyword) * removed accidental commit * Revert "used @maxnoe's suggestion of a Deprecated wrapper class" This reverts commit 541699b. * add reason for deprecation and issue warning * fix test
- Loading branch information
Showing
13 changed files
with
1,802 additions
and
1,517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.