Have been finding this module very useful. I added a TOPAS binary exporter using the numpy.ndarray.tofile() function. This is in line with the reverse operation of the topas2numpy's import using numpy.fromfile().
The one drawback of the binary format is that it can't be transferred across systems of different endianness. I believe this is baked into the format for all TOPAS users, so maybe we add a warning along these lines when exporting to binary?
Added a test to the testsuite, and tested the binary import with OpenTOPAS v4.0.0
Have been finding this module very useful. I added a TOPAS binary exporter using the
numpy.ndarray.tofile()
function. This is in line with the reverse operation of the topas2numpy's import usingnumpy.fromfile()
.The one drawback of the binary format is that it can't be transferred across systems of different endianness. I believe this is baked into the format for all TOPAS users, so maybe we add a warning along these lines when exporting to binary?
Added a test to the testsuite, and tested the binary import with OpenTOPAS v4.0.0