Skip to content

Commit

Permalink
Add col
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed May 1, 2024
1 parent 42b3ac8 commit 377c2a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fixms/fix_ms_corrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fixms"
version = "0.2.5"
version = "0.2.6"
description = ""
authors = ["Alec Thomson (S&A, Kensington WA) <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 377c2a1

Please sign in to comment.