Backend of MEX/NPI dataset.
MEX/NPI data set was produced by MatsH. The file is an ascii format containing all the count rate. In addition other misc information is included.
There is also a “simple” format, i.e. without misc information. This simple format should also be implemented for future use.
Re-organize the files would be very important. Inteface should be the same.
- class irfpy.mnpi.backend_mnpi.MexNpiEntry(linedata)¶
Instance NPI data.
The NPI data consists of (at least) time and the count rate.
Return the count.
- class irfpy.mnpi.backend_mnpi.MexNpiFile(*args, **kwds)¶
NPI data file for MEX.
NPI data file. Typical usage is as follows.
First, instance the file.
>>> sample = MexNpiFile.get_sample_filename() >>> npi = MexNpiFile(sample)
Then you can get dataset via
getDataset()method. The returned dataset is the instance of
>>> dataset = npi.getDataset() >>> print(dataset.size()) 360
- classmethod get_sample_filename()¶
Load the file, and store it in the