Skip to content

Commit

Permalink
remove axes that have a value of -9999 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhoersch authored Feb 28, 2023
1 parent 1892d5f commit 994035c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def prune_scan_info(scan_info, prune_always_axes=False):
condition = axis not in keep_this and np.isclose(inital_val, 0, atol=0.001)
if not prune_always_axes:
condition = condition and axis not in imgcif_creator.ALWAYS_AXES
if inital_val == -9999:
condition = True

if condition:
for scan in scan_info:
Expand Down

0 comments on commit 994035c

Please sign in to comment.