From a68c39eb6d02b8833ea695074e330af29da13ab8 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Thu, 5 Dec 2024 20:04:27 -0800 Subject: [PATCH] Squashed 'modules/pmi/' changes from 4a4cd0df72..836317f886 836317f886 Force PMI offset to be a real Python int git-subtree-dir: modules/pmi git-subtree-split: 836317f886c827c428c5dcc5e28223b50764d500 --- modules/pmi/pyext/src/mmcif.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/pmi/pyext/src/mmcif.py b/modules/pmi/pyext/src/mmcif.py index 519ba8b49a..8060e5998d 100644 --- a/modules/pmi/pyext/src/mmcif.py +++ b/modules/pmi/pyext/src/mmcif.py @@ -1823,7 +1823,9 @@ def _trim_unrep_termini(entity, asyms, representations): return # Update offset (= number of unrepresented N terminal entity residues) # in entity and all asyms - pmi_offset = rep_range[0] - 1 + # Force offset to be a real Python int (not numpy.int64) as python-ihm + # up to version 1.8 requires auth_seq_id_map to be int. + pmi_offset = int(rep_range[0]) - 1 entity.pmi_offset = pmi_offset for asym in asyms: if asym.entity is entity: