Skip to content

Commit

Permalink
Correct check of dists in writePickle
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlees committed Aug 7, 2024
1 parent 9fb29df commit 04c5283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def storePickle(rlist, qlist, self, X, pklName):
"""
with open(pklName + ".pkl", 'wb') as pickle_file:
pickle.dump([rlist, qlist, self], pickle_file)
if X != None:
if isinstance(X, np.ndarray):
np.save(pklName + ".npy", X)


Expand Down

0 comments on commit 04c5283

Please sign in to comment.