|
9 | 9 |
|
10 | 10 | from astrohack.io.beamcut_mds import AstrohackBeamcutFile |
11 | 11 | from astrohack.io.locit_mds import AstrohackLocitFile |
12 | | -from astrohack.utils.file import check_if_file_can_be_opened |
| 12 | +from astrohack.utils.file import ( |
| 13 | + check_if_file_can_be_opened, |
| 14 | + check_if_file_can_be_opened_2, |
| 15 | +) |
13 | 16 | from astrohack.io.mds import AstrohackImageFile |
14 | 17 | from astrohack.io.mds import AstrohackHologFile |
15 | 18 | from astrohack.io.mds import AstrohackPanelFile |
@@ -55,6 +58,7 @@ def open_beamcut(file: str) -> Union[AstrohackBeamcutFile, None]: |
55 | 58 | ant_n: … |
56 | 59 | } |
57 | 60 | """ |
| 61 | + check_if_file_can_be_opened_2(file, "beamcut", "0.10.1") |
58 | 62 | _data_file = AstrohackBeamcutFile(file=file) |
59 | 63 |
|
60 | 64 | if _data_file.open(): |
@@ -212,6 +216,7 @@ def open_locit(file: str) -> Union[AstrohackLocitFile, None]: |
212 | 216 | } |
213 | 217 |
|
214 | 218 | """ |
| 219 | + check_if_file_can_be_opened_2(file, "extract_locit", "0.10.1") |
215 | 220 | _data_file = AstrohackLocitFile(file=file) |
216 | 221 |
|
217 | 222 | if _data_file.open(): |
@@ -249,6 +254,7 @@ def open_position(file: str) -> Union[AstrohackPositionFile, None]: |
249 | 254 | } |
250 | 255 |
|
251 | 256 | """ |
| 257 | + check_if_file_can_be_opened_2(file, "locit", "0.10.1") |
252 | 258 | _data_file = AstrohackPositionFile(file=file) |
253 | 259 |
|
254 | 260 | if _data_file.open(): |
|
0 commit comments