Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLA-1111: Updated SVM filenames for WFPC2 #1678

7 changes: 6 additions & 1 deletion drizzlepac/haputils/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,19 @@ def __init__(
log.setLevel(log_level)
self.log_level = log_level

# Special logic to specify the WFPC2 detector name always to PC (as opposed to WFPC2) for filenaming.
if instrument =='wfpc2':
detector = 'pc'
# import ipdb; ipdb.set_trace()

# Make sure the proposal ID is a 5-character string
self.prop_id = prop_id.zfill(5)
self.obset_id = obset_id
self.instrument = instrument
self.detector = detector
self.filetype = filetype
self.rules_file = None

self.basename = (
"hst_" + "_".join(map(str, [prop_id, obset_id, instrument, detector])) + "_"
)
Expand Down
19 changes: 19 additions & 0 deletions drizzlepac/pars/hap_pars/mvm_parameters/wfpc2_pc_index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
s-goldman marked this conversation as resolved.
Show resolved Hide resolved
"alignment": {
"all": "wfpc2/wfpc2/wfpc2_pc_alignment_all.json"
},
"astrodrizzle": {
"any_n1": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n1.json",
"filter_basic": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_total.json",
"single_basic": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n1.json",
"wfpc2_pc_any_n2": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n2.json",
"wfpc2_pc_any_n4": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n4.json",
"wfpc2_pc_any_total": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_total.json"
},
"catalog generation": {
"all": "wfpc2/wfpc2/wfpc2_pc_catalog_generation_all.json"
},
"quality control": {
"all": "wfpc2/wfpc2/wfpc2_pc_quality_control_all.json"
}
}
19 changes: 0 additions & 19 deletions drizzlepac/pars/hap_pars/mvm_parameters/wfpc2_wfpc2_index.json

This file was deleted.

20 changes: 20 additions & 0 deletions drizzlepac/pars/hap_pars/svm_parameters/wfpc2_pc_index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
s-goldman marked this conversation as resolved.
Show resolved Hide resolved
"alignment": {
"all": "wfpc2/wfpc2/wfpc2_pc_alignment_all.json"
},
"astrodrizzle": {
"any_n1": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n1.json",
"filter_basic": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_total.json",
"single_basic": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n1.json",
"total_basic": "wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_total.json",
"wfpc2_pc_any_n2":"wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n2.json",
"wfpc2_pc_any_n3":"wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n3.json",
"wfpc2_pc_any_n4":"wfpc2/wfpc2/wfpc2_pc_astrodrizzle_any_n4.json"
},
"catalog generation": {
"all": "wfpc2/wfpc2/wfpc2_pc_catalog_generation_all.json"
},
"quality control": {
"all": "wfpc2/wfpc2/wfpc2_pc_quality_control_all.json"
}
}
20 changes: 0 additions & 20 deletions drizzlepac/pars/hap_pars/svm_parameters/wfpc2_wfpc2_index.json

This file was deleted.