-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tests for makers, container and component modules (part 1/X) (#163)
* add arg to load only wfs and do not extract charges * cleaner way to treat containers inside makers * new methods to find computed calibration quatities ds to find computed calibration quatities * update to support new version of EvB v6 * -bug fix SPE combined : method use to update parameters was not the wanted one -update pp and n values to last studies -display wfs -> mean instead of sum -Agg backend is not forced in Pstat calibnration * add find photostat result method * user scripts * add workflow_display to CI * change tests name in user_scripts which is not a test for pytest * fix import errors in TRR exluse user_scripts to pytest * bugfix : logger improvement split_run method * static method decorator were missing * bugfix test containers * unit test fore nectarchain.makers .core * bugfix with new version of LIghtNectarCAMEventSource from ctapipe_io_nectarcam * very small code improvement * Unit test for WaveformsNectarCAMCalibrationTool * Unit test for the ChargesNectarCAMCalibrationTool * formatting * fix test core makers * flake8 formatting * refactoring following pep8 * continue refactoring * dqm flake8 * refactoring containers * fix bug formatting * shitty python formatting * test bugfix * pedestal maker : implementation of I/O with containers * remove LightNectarCamEventSource * bugfix in toml file introduced in previous commits * bugfix : __init__ file in tests repertory * pytest don't like to have 2 test files with same names * specific noqa for unused imports --------- Co-authored-by: guillaume.grolleron <ggroller@lpnhe.in2p3.fr>
- Loading branch information
1 parent
7fb5beb
commit 5151e86
Showing
84 changed files
with
2,395 additions
and
1,716 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,34 @@ | ||
from .container import * | ||
from .management import * | ||
"""Description: This file is used to import all the classes and functions | ||
from the data module.""" | ||
|
||
from .container import ( | ||
ArrayDataContainer, | ||
ChargesContainer, | ||
ChargesContainers, | ||
GainContainer, | ||
NectarCAMContainer, | ||
NectarCAMPedestalContainer, | ||
SPEfitContainer, | ||
TriggerMapContainer, | ||
WaveformsContainer, | ||
WaveformsContainers, | ||
get_array_keys, | ||
merge_map_ArrayDataContainer, | ||
) | ||
from .management import DataManagement | ||
|
||
__all__ = [ | ||
"ArrayDataContainer", | ||
"NectarCAMContainer", | ||
"TriggerMapContainer", | ||
"get_array_keys", | ||
"merge_map_ArrayDataContainer", | ||
"ChargesContainer", | ||
"ChargesContainers", | ||
"WaveformsContainer", | ||
"WaveformsContainers", | ||
"GainContainer", | ||
"SPEfitContainer", | ||
"NectarCAMPedestalContainer", | ||
"DataManagement", | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
from .chargesContainer import * | ||
"""This file is used to import all the containerclasses in the data/container | ||
folder.""" | ||
|
||
from .charges_container import ChargesContainer, ChargesContainers | ||
from .core import ( | ||
ArrayDataContainer, | ||
NectarCAMContainer, | ||
TriggerMapContainer, | ||
get_array_keys, | ||
merge_map_ArrayDataContainer, | ||
) | ||
from .eventSource import * | ||
from .gainContainer import * | ||
from .waveformsContainer import * | ||
from .pedestalContainer import * | ||
from .gain_container import GainContainer, SPEfitContainer | ||
from .pedestal_container import ( | ||
NectarCAMPedestalContainer, | ||
NectarCAMPedestalContainers, | ||
PedestalFlagBits, | ||
) | ||
from .waveforms_container import WaveformsContainer, WaveformsContainers | ||
|
||
__all__ = [ | ||
"ArrayDataContainer", | ||
"NectarCAMContainer", | ||
"TriggerMapContainer", | ||
"get_array_keys", | ||
"merge_map_ArrayDataContainer", | ||
"ChargesContainer", | ||
"ChargesContainers", | ||
"WaveformsContainer", | ||
"WaveformsContainers", | ||
"GainContainer", | ||
"SPEfitContainer", | ||
"NectarCAMPedestalContainer", | ||
"NectarCAMPedestalContainers", | ||
"PedestalFlagBits", | ||
] |
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.