From e4d14ac929ebf9b12313b8f8e10c1ca30f0a5e09 Mon Sep 17 00:00:00 2001 From: Ken Leidal Date: Wed, 8 Jan 2025 19:59:48 +0000 Subject: [PATCH] fix get_resolution. Was always 0.0 --- scripts/process/mmcif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process/mmcif.py b/scripts/process/mmcif.py index 6296ba6..41ae44a 100644 --- a/scripts/process/mmcif.py +++ b/scripts/process/mmcif.py @@ -151,7 +151,7 @@ def get_resolution(block: gemmi.cif.Block) -> float: "_reflns.d_resolution_high", ): with contextlib.suppress(Exception): - resolution = float(block.find([res_key])[0]) + resolution = float(block.find([res_key])[0].str(0)) break return resolution