Skip to content

Commit 9117049

Browse files
authored
BUG: simplify release file import (#312)
1 parent 59407a9 commit 9117049

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

imap_data_access/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
DependencyFilePath,
1616
ImapFilePath,
1717
QuicklookFilePath,
18+
ReleaseFilePath,
1819
ScienceFilePath,
1920
SPICEFilePath,
2021
)
@@ -38,6 +39,7 @@
3839
"ImapFilePath",
3940
"ProcessingInputCollection",
4041
"QuicklookFilePath",
42+
"ReleaseFilePath",
4143
"RepointInput",
4244
"SPICEFilePath",
4345
"SPICEInput",

tests/test_file_validation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,3 +727,9 @@ def test_with_release_file_path():
727727
assert release_file_lo.descriptor == "unrelease"
728728
assert release_file_lo.start_date == "20260201"
729729
assert release_file_lo.end_date == "20260430"
730+
731+
# construct path test
732+
expected_output = imap_data_access.config["DATA_DIR"] / Path(
733+
"imap/release/mag/imap_mag_withhold-data-release-001_20260201_20260430_v001.txt"
734+
)
735+
assert release_file_mag.construct_path() == expected_output

0 commit comments

Comments
 (0)