diff --git a/PopPUNK/utils.py b/PopPUNK/utils.py index 31f4763d..6f6a5c68 100644 --- a/PopPUNK/utils.py +++ b/PopPUNK/utils.py @@ -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)