From de1cf153a027636e55d47478d0495c1753e71b36 Mon Sep 17 00:00:00 2001 From: Padraic Shafer Date: Sat, 13 Apr 2024 09:19:09 -0700 Subject: [PATCH] CatalogOfBlueskyRuns uses _core logic for int64 index --- databroker/client.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/databroker/client.py b/databroker/client.py index 09ccd0642..2f234b1d7 100644 --- a/databroker/client.py +++ b/databroker/client.py @@ -253,16 +253,6 @@ def __getitem__(self, key): pass return self._lookup_by_partial_uid(key) elif isinstance(key, numbers.Integral): - # Handle large values, such as numpy.int64 - max_int_value = 2**31 - 1 ## 32-bit signed integer - if abs(key) <= max_int_value: - key = int(key) - else: - reason = " ".join( - f"Integer key must be less than +/-{max_int_value};", - f"cannot convert value {key} of type {type(key)}." - ) - raise KeyError(reason) if key > 0: # CASE 2: Interpret key as a scan_id. return self._lookup_by_scan_id(key)