Skip to content

Commit d086346

Browse files
authored
Merge pull request #894 from punch-mission/polarized-quicklook
Defaults quicklook layer to pB for polarized mosaics
2 parents 647865f + f8fee23 commit d086346

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

changelog/894.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Defaults quicklook layer to pB for polarized mosaics.

punchbowl/auto/control/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def _write_quicklook(pipeline_config: dict, corresponding_file_db_entry: File, d
123123
corresponding_file_db_entry.filename())
124124
ql_filename = ql_filename.replace(".fits", ".jp2")
125125
os.makedirs(os.path.dirname(ql_filename), exist_ok=True)
126-
write_ndcube_to_quicklook(data, ql_filename, layer="tB", write_hash=True)
126+
layer = 1 if data.meta["TYPECODE"].value == "PA" else "tB"
127+
write_ndcube_to_quicklook(data, ql_filename, layer=layer, write_hash=True)
127128

128129

129130
def match_data_with_file_db_entry(data: NDCube, file_db_entry_list):

0 commit comments

Comments
 (0)