Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove axes that have a value of -9999 #56

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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