serpentTools.data.readDataFile¶
-
serpentTools.data.
readDataFile
(path, **kwargs)¶ Return a reader for the data file (test or example) file.
All additional keyword arguments will be passed to
serpentTools.read()
.- Parameters
path (str) – The name of the file without any additional directory information
- Returns
The reader that has processed this file and stored all the data
- Return type
- Raises
IOError: – If the file for
path
does not exist
Examples
Obtain a detector file from the examples
>>> import serpentTools >>> d = serpentTools.readDataFile('bwr_det0.m') >>> d.detectors.keys() dict_keys(['spectrum', 'xymesh'])
See also