From 377c2a1cf2e01a7e5f49c9ab926afc736a09a475 Mon Sep 17 00:00:00 2001 From: "Alec Thomson (S&A, Kensington WA)" Date: Wed, 1 May 2024 11:53:20 +0800 Subject: [PATCH] Add col --- fixms/fix_ms_corrs.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fixms/fix_ms_corrs.py b/fixms/fix_ms_corrs.py index bee89ce..992f05b 100644 --- a/fixms/fix_ms_corrs.py +++ b/fixms/fix_ms_corrs.py @@ -33,6 +33,10 @@ def set_pol_axis(ms: Path, pol_ang: u.Quantity, feed_idx: Optional[int] = None) # Backup the original RECEPTOR_ANGLE to INSTRUMENT_RECEPTOR_ANGLE with table((ms / "FEED").as_posix(), readonly=False, ack=False) as tf: + coldesc = makecoldesc( + "INSTRUMENT_RECEPTOR_ANGLE", tf.getcoldesc("RECEPTOR_ANGLE") + ) + tf.addcols(coldesc) tf.putcol("INSTRUMENT_RECEPTOR_ANGLE", ms_feed.to(u.rad).value) tf.flush() logger.info("Backed up the original RECEPTOR_ANGLE to INSTRUMENT_RECEPTOR_ANGLE") diff --git a/pyproject.toml b/pyproject.toml index f15f799..c646fb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fixms" -version = "0.2.5" +version = "0.2.6" description = "" authors = ["Alec Thomson (S&A, Kensington WA) "] readme = "README.md"