More refactoring

This commit is contained in:
Noe Brucy
2022-11-03 16:50:05 +01:00
parent 0d117132d3
commit e56c09cd59
9 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -48,7 +48,7 @@ from baseprocessor import (
oct_vect_getter,
)
from runselector import RunSelector
from utils.runselector import RunSelector
# Getters
@@ -1440,6 +1440,8 @@ class SnapshotProcessor(HDF5Container):
pspec.pspec(repo=self.path, iouts=[self.num], outfile=outfile, **kwargs)
return np.array([self.pspec_filename])
def _write_particles(self):
"""Ensure particles are written in the hdf5 file"""
if not os.path.exists(self.parts_filename) and not self.parts_loaded: