serpentTools.samplers.DetectorSampler¶
-
class
serpentTools.samplers.
DetectorSampler
(files)¶ Class responsible for reading multiple detector files
The following checks are performed to ensure that all detectors are of similar structure and content
Each parser must have the same detectors
The reshaped tally data must be of the same size for all detectors
These tests can be skipped by settings
<sampler.skipPrecheck>
to beFalse
.- Parameters
files (str or iterable) – Single file or iterable (list) of files from which to read. Supports file globs,
*det0.m
expands to all files that end withdet0.m
-
detectors
¶ Dictionary of key, values pairs for detector names and corresponding
SampledDetector
instances- Type
-
free
()¶ Remove all parsers and individual containers from memory
-
process
()¶ Process the repeated files to obtain true uncertainties
-
read
()¶ Read all the files and create parser objects