We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6cee9a commit 964c124Copy full SHA for 964c124
derotation/analysis/full_derotation_pipeline.py
@@ -214,12 +214,15 @@ def load_data(self):
214
Path(self.debug_plots_folder).mkdir(parents=True, exist_ok=True)
215
216
# unlink previous debug plots
217
+ logging.info("Deleting previous debug plots...")
218
for item in self.debug_plots_folder.iterdir():
219
if item.is_dir():
220
for file in item.iterdir():
- file.unlink()
221
+ if file.suffix == ".png":
222
+ file.unlink()
223
else:
- item.unlink()
224
+ if item.suffix == ".png":
225
+ item.unlink()
226
227
logging.info(f"Dataset {self.filename_raw} loaded")
228
logging.info(f"Filename: {self.filename}")
0 commit comments