Skip to content

Commit fdbdff2

Browse files
authored
Merge pull request #189 from StollLab/bug_allow_pickle
Bug allow pickle
2 parents adf87fe + 40e69ae commit fdbdff2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/chilife/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
# SpinLabel = SpinLabel.SpinLabel
2727
# dSpinLabel = dSpinLabel.dSpinLabel
2828

29-
__version__ = '1.1.4'
29+
__version__ = '1.1.5'

src/chilife/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def read_rotlib(rotlib: Union[Path, BinaryIO] = None) -> Dict:
178178
'new format.')
179179

180180
lib = dict(files)
181-
182-
del lib["allow_pickle"]
181+
if 'allow_pickle' in lib:
182+
del lib["allow_pickle"]
183183

184184
if "sigmas" not in lib:
185185
lib["sigmas"] = np.array([])

0 commit comments

Comments
 (0)