Skip to content

Commit

Permalink
Merge pull request #441 from lsst/tickets/SP-1922
Browse files Browse the repository at this point in the history
SP-1922: Bugfixes in scripts - set clobber properly, set order of batches
  • Loading branch information
rhiannonlynne authored Feb 11, 2025
2 parents f2240e5 + 159177d commit da85d11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rubin_sim/maf/make_fbs_tracking_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def make_fbs_tracking_db():
args = parser.parse_args()

batches = {
"meta": "General Info Metrics",
"glance": "Quick Look Metrics",
"meta": "General Info Metrics",
"sci": "Science Metrics",
"ss": "Solar System Metrics",
"ddf": "Deep Drilling Metrics",
Expand All @@ -45,7 +45,7 @@ def make_fbs_tracking_db():
db_name = vals[-1]
run_name = db_name.replace(".db", "")
run_version = run_name.split("_10yrs")[0][-4:]
run_group = run_version + family
run_group = " ".join([run_version, family])

# Try to build a comment on the run based on the run_name
run_comment = run_name.replace("_10yrs", "")[0:-4]
Expand Down
3 changes: 2 additions & 1 deletion rubin_sim/maf/metadata_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def metadata_dir():
parser.add_argument(
"--no_clobber",
dest="no_clobber",
action="store_false",
action="store_true",
default=False,
help="Do not remove existing directory outputs",
)
args = parser.parse_args()
Expand Down
3 changes: 2 additions & 1 deletion rubin_sim/maf/scimaf_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def scimaf_dir():
parser.add_argument(
"--no_clobber",
dest="no_clobber",
action="store_false",
action="store_true",
default=False,
help="Do not remove existing directory outputs",
)
parser.set_defaults(no_long_micro=False)
Expand Down

0 comments on commit da85d11

Please sign in to comment.