v0.20.0 -- Full s3 event parse and PDF creation. #28
+8
-3
@@ -1987,10 +1987,15 @@ def _cleanup_event_files(row: dict) -> dict:
|
||||
base_name = bw_name or a5_name or sc_name
|
||||
if base_name:
|
||||
bw_path, a5_path = store.paths_for(serial, base_name)
|
||||
sc_path = store.sidecar_path_for(serial, base_name)
|
||||
h5_path = store.hdf5_path_for(serial, base_name)
|
||||
sc_path = store.sidecar_path_for(serial, base_name)
|
||||
h5_path = store.hdf5_path_for(serial, base_name)
|
||||
# Preserved BW ASCII report (added 2026-05-27 with the .TXT
|
||||
# preservation feature) — needs to be cleaned up too, otherwise
|
||||
# deletes leave orphan _ASCII.TXT files behind.
|
||||
txt_path = store.txt_path_for(serial, base_name)
|
||||
for kind, p in [("blastware", bw_path), ("a5_pickle", a5_path),
|
||||
("sidecar", sc_path), ("hdf5", h5_path)]:
|
||||
("sidecar", sc_path), ("hdf5", h5_path),
|
||||
("txt", txt_path)]:
|
||||
try:
|
||||
if p.exists():
|
||||
p.unlink()
|
||||
|
||||
Reference in New Issue
Block a user