Skip to content

Commit 0c15ed7

Browse files
committed
change directory name
1 parent 7207dbb commit 0c15ed7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/osa/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def convert_dec_string(dec_str: str) -> u.Quantity:
413413
given string of the form "dec_XXXX" or "dec_min_XXXX"."""
414414

415415
# Check if dec_str has a valid format
416-
pattern = r'^dec(_min)?_[0-9]{4}$'
416+
pattern = r'^dec_(\d{3,4})$|^dec_min_(\d{3,4})$'
417417
if re.match(pattern, dec_str):
418418

419419
# Split the string into parts

src/osa/scripts/tests/test_osa_scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_datasequence(
244244
running_analysis_dir,
245245
run_catalog,
246246
run_catalog_dir,
247-
rf_models_dir,
247+
rf_models_allsky_basedir,
248248
rf_model_path
249249
):
250250
drs4_file = "drs4_pedestal.Run00001.0000.fits"
@@ -259,7 +259,7 @@ def test_datasequence(
259259

260260
assert run_catalog_dir.exists()
261261
assert run_catalog.exists()
262-
assert rf_models_dir.exists()
262+
assert rf_models_allsky_basedir.exists()
263263
assert rf_model_path.exists()
264264

265265
output = run_program(

0 commit comments

Comments
 (0)