From 36a021cb5a34f1ef244c3704043dc302f1dfa07e Mon Sep 17 00:00:00 2001 From: Marcus Hughes Date: Wed, 27 Nov 2024 14:01:16 -0700 Subject: [PATCH] save only the TLM filename instead of the whole path --- punchpipe/flows/level0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/punchpipe/flows/level0.py b/punchpipe/flows/level0.py index 9fbd6e1..9c71ea3 100644 --- a/punchpipe/flows/level0.py +++ b/punchpipe/flows/level0.py @@ -41,7 +41,7 @@ def level0_ingest_raw_packets(pipeline_config_path: str | None = None, session=N paths = detect_new_tlm_files(config, session=session) for path in paths: packets = parse_new_tlm_files(path) - new_tlm_file = TLMFiles(path=path, is_processed=True) + new_tlm_file = TLMFiles(path=os.path.basename(path), is_processed=True) session.add(new_tlm_file) session.commit() update_tlm_database(packets, new_tlm_file.tlm_id)