Skip to content

Commit 07f6d09

Browse files
committed
Add catalogue name
1 parent dcf923f commit 07f6d09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arrakis/makecat.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,11 +1143,16 @@ def main(
11431143
name="pos_err",
11441144
)
11451145

1146+
if outfile is not None:
1147+
catalogue_name = Path(outfile).stem
1148+
else:
1149+
catalogue_name = None
1150+
11461151
# Add common columns
11471152
rmtab["rm_method"] = "RM Synthesis - Fractional polarization"
11481153
rmtab["telescope"] = "ASKAP"
11491154
rmtab["pol_bias"] = "2012PASA...29..214G"
1150-
rmtab["catalog"] = "Arrakis-DR1"
1155+
rmtab["catalog"] = catalogue_name
11511156
rmtab["ionosphere"] = "FRion"
11521157
rmtab["flux_type"] = "Peak"
11531158
rmtab["aperture"] = 0 * u.deg

0 commit comments

Comments
 (0)