Skip to content

Commit

Permalink
Merge branch 'main' into fix_image_rot
Browse files Browse the repository at this point in the history
  • Loading branch information
aknierim authored Oct 9, 2024
2 parents 55549a6 + 4978574 commit e93ae00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changes/38.optimization.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use `obs.layout` instead of passing the layout name separately in `pyvisgen.fits.writer.create_vis_hdu`
6 changes: 3 additions & 3 deletions pyvisgen/fits/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pyvisgen.layouts.layouts as layouts


def create_vis_hdu(data, obs, layout="vlba", source_name="sim-source-0"):
def create_vis_hdu(data, obs, source_name="sim-source-0"):
u = data.u

v = data.v
Expand Down Expand Up @@ -95,8 +95,8 @@ def create_vis_hdu(data, obs, layout="vlba", source_name="sim-source-0"):
hdu_vis.header["EXTNAME"] = ("AIPS UV", "AIPS UV")
hdu_vis.header["EXTVER"] = (1, "Version number of table")
hdu_vis.header["OBJECT"] = (source_name, "Source name")
hdu_vis.header["TELESCOP"] = (layout, "Telescope name")
hdu_vis.header["INSTRUME"] = (layout, "Instrument name (receiver or ?)")
hdu_vis.header["TELESCOP"] = (obs.layout, "Telescope name")
hdu_vis.header["INSTRUME"] = (obs.layout, "Instrument name (receiver or ?)")
hdu_vis.header["DATE-OBS"] = (date_obs, "Observation date")
hdu_vis.header["DATE-MAP"] = (date_map, "File processing date")
hdu_vis.header["BSCALE"] = (1, "Always 1")
Expand Down

0 comments on commit e93ae00

Please sign in to comment.