File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def is_valid_repointing(input_repointing: str) -> bool:
414
414
bool
415
415
Whether input repointing is valid or not.
416
416
"""
417
- return re .fullmatch (r"repoint\d{5}" , str (input_repointing ))
417
+ return bool ( re .fullmatch (r"repoint\d{5}" , str (input_repointing ) ))
418
418
419
419
def is_valid_for_start_date (self , start_date : datetime ) -> bool :
420
420
"""Check if the file is valid for the given science file start_date.
Original file line number Diff line number Diff line change @@ -678,3 +678,8 @@ def test_dependency_file_path():
678
678
file = DependencyFilePath ("imap_mag_l1a_test_20210101_v001.json" )
679
679
assert file .instrument == "mag"
680
680
assert file .start_date == "20210101"
681
+
682
+
683
+ def test_repoint ():
684
+ state = imap_data_access .ScienceFilePath .is_valid_repointing ("repoint00001" )
685
+ assert state is True
You can’t perform that action at this time.
0 commit comments