Review of this file: https://github.com/mccode-dev/McStasToX/blob/main/mcstastox/LoadFile.py
The Data class acts as the context manager and interface of the package. It loads the NeXus file with the McStasNeXus class. The Data class has several methods that are just thin interfaces to the McStasNeXus class to ease accessing data for the user. It also has transformation of data from local- to global-coordinate system, and handles exporting. Export can currently be to numpy or scipp.
See demo notebooks for examples of how to use the class.
Review of this file: https://github.com/mccode-dev/McStasToX/blob/main/mcstastox/LoadFile.py
The Data class acts as the context manager and interface of the package. It loads the NeXus file with the McStasNeXus class. The Data class has several methods that are just thin interfaces to the McStasNeXus class to ease accessing data for the user. It also has transformation of data from local- to global-coordinate system, and handles exporting. Export can currently be to numpy or scipp.
See demo notebooks for examples of how to use the class.