Skip to content

Commit

Permalink
update how instrument and nants_telescope are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
PyxieLouStar committed Jun 1, 2023
1 parent ae3e84e commit 7644277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyuvdata/uvdata/mwa_corr_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1484,9 +1484,8 @@ def read_mwa_corr_fits(
self.history, self.pyuvdata_version_str
):
self.history += self.pyuvdata_version_str
self.instrument = meta_hdr["TELESCOP"]
self.instrument = meta_hdr.pop["INSTRUME"]
self.telescope_name = meta_hdr.pop("TELESCOP")
self.Nants_telescope = int(meta_hdr.pop("INSTRUME")[0:3])
object_name = meta_hdr.pop("FILENAME")

# if not mwax, remove mwax-specific keys
Expand Down Expand Up @@ -1536,6 +1535,7 @@ def read_mwa_corr_fits(
dig_gains = dig_gains[reordered_inds, :]

# set parameters from other parameters
self.Nants_telescope = len(self.antenna_numbers)
self.Nants_data = len(self.antenna_numbers)
self.Nbls = int(
len(self.antenna_numbers) * (len(self.antenna_numbers) + 1) / 2.0
Expand Down

0 comments on commit 7644277

Please sign in to comment.