From 994035c9c193838c25f3cab1af27744b385bda4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20H=C3=B6rsch?= <75368027+julianhoersch@users.noreply.github.com> Date: Tue, 28 Feb 2023 05:32:41 +0100 Subject: [PATCH] remove axes that have a value of -9999 (#56) --- .../imgCIF_Creator/information_extractors/extractor_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/imgCIF_Creator/imgCIF_Creator/information_extractors/extractor_utils.py b/Tools/imgCIF_Creator/imgCIF_Creator/information_extractors/extractor_utils.py index c52537b..6b47b72 100644 --- a/Tools/imgCIF_Creator/imgCIF_Creator/information_extractors/extractor_utils.py +++ b/Tools/imgCIF_Creator/imgCIF_Creator/information_extractors/extractor_utils.py @@ -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: