From fbcc6ec0ecec89576ecdd37647f18437058bd7c6 Mon Sep 17 00:00:00 2001 From: Maxx Tessmer Date: Fri, 11 Apr 2025 20:29:45 -0700 Subject: [PATCH 1/2] Add if wrapper around dict element deletion to prevent errors --- src/chilife/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chilife/io.py b/src/chilife/io.py index bd8563e..2c68298 100644 --- a/src/chilife/io.py +++ b/src/chilife/io.py @@ -178,8 +178,8 @@ def read_rotlib(rotlib: Union[Path, BinaryIO] = None) -> Dict: 'new format.') lib = dict(files) - - del lib["allow_pickle"] + if 'allow_pickle' in lib: + del lib["allow_pickle"] if "sigmas" not in lib: lib["sigmas"] = np.array([]) From 40e69ae68372160cf0c324996b529dc3a8645347 Mon Sep 17 00:00:00 2001 From: Maxx Tessmer Date: Fri, 11 Apr 2025 20:33:02 -0700 Subject: [PATCH 2/2] bump version --- src/chilife/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chilife/__init__.py b/src/chilife/__init__.py index 64d73d3..17e2e1e 100644 --- a/src/chilife/__init__.py +++ b/src/chilife/__init__.py @@ -26,4 +26,4 @@ # SpinLabel = SpinLabel.SpinLabel # dSpinLabel = dSpinLabel.dSpinLabel -__version__ = '1.1.4' +__version__ = '1.1.5'