Skip to content

Commit

Permalink
Add thin wrapper for nxmx_writer.py (dxtbx.any2nexus) (cctbx#735)
Browse files Browse the repository at this point in the history
Also update comment
  • Loading branch information
phyy-nx authored and toastisme committed Jul 11, 2024
1 parent 4cae0b8 commit 9db55ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions newsfragments/735.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add dxtbx.any2nexus, program to convert any file dxtbx can read to a NeXus file.
5 changes: 5 additions & 0 deletions src/dxtbx/command_line/any2nexus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from dxtbx.format.nxmx_writer import run
import sys

if __name__ == "__main__":
run(sys.argv[1:])
2 changes: 0 additions & 2 deletions src/dxtbx/format/nxmx_writer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
Note, scans and gonios not supported here. This writer essentially writes still images
Example to write 10 cbfs to a single NXmx file:
writer = NXmxWriter("*.cbf")
writer.write_nxmx("example.h5")
Expand Down

0 comments on commit 9db55ce

Please sign in to comment.