From c749d58b12324e813b8e702545cfb4eda6411642 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Fri, 20 Dec 2024 13:14:09 -0800 Subject: [PATCH] Squashed 'modules/pmi/' changes from 836317f886..95a70e17d1 95a70e17d1 Allow index to be any kind of integer git-subtree-dir: modules/pmi git-subtree-split: 95a70e17d117fae4f061a436036c4d4d0752f008 --- modules/pmi/pyext/src/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pmi/pyext/src/tools.py b/modules/pmi/pyext/src/tools.py index 75a5e26150..19bf7380bd 100644 --- a/modules/pmi/pyext/src/tools.py +++ b/modules/pmi/pyext/src/tools.py @@ -18,7 +18,7 @@ import IMP.rmf from collections import defaultdict, OrderedDict import warnings -import numpy +import numbers def _get_system_for_hier(hier): @@ -637,7 +637,7 @@ def __init__(self, index): def add(self, index): '''index can be a integer or a list of integers ''' - if isinstance(index, (int, numpy.int32, numpy.int64)): + if isinstance(index, numbers.Integral): mergeleft = None mergeright = None for n, s in enumerate(self.segs):