Skip to content

Commit

Permalink
Squashed 'modules/pmi/' changes from 4a4cd0df72..836317f886
Browse files Browse the repository at this point in the history
836317f886 Force PMI offset to be a real Python int

git-subtree-dir: modules/pmi
git-subtree-split: 836317f886c827c428c5dcc5e28223b50764d500
  • Loading branch information
benmwebb committed Dec 6, 2024
1 parent 1fdb093 commit a68c39e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pmi/pyext/src/mmcif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a68c39e

Please sign in to comment.