[snapshot] add verification before redoing pspsec
This commit is contained in:
@@ -1371,8 +1371,9 @@ class SnapshotProcessor(HDF5Container):
|
|||||||
df = pd.read_csv(csv_name, header=None, names=header)
|
df = pd.read_csv(csv_name, header=None, names=header)
|
||||||
return {key: df[key].values for key in df}
|
return {key: df[key].values for key in df}
|
||||||
|
|
||||||
def _pspec(self, **kwargs):
|
def _pspec(self, overwrite_file=False, **kwargs):
|
||||||
outfile = self.pspec_filename
|
outfile = self.pspec_filename
|
||||||
|
if overwrite_file or not os.path.exists(self.pspec_filename):
|
||||||
pspec_new.pspec(repo=self.path, iouts=[self.num], outfile=outfile, **kwargs)
|
pspec_new.pspec(repo=self.path, iouts=[self.num], outfile=outfile, **kwargs)
|
||||||
return np.array([self.pspec_filename])
|
return np.array([self.pspec_filename])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user