Skip to content

Commit

Permalink
Merge pull request #128 from wheeyeon/master
Browse files Browse the repository at this point in the history
Patch for importing VLA uvfits files
  • Loading branch information
achael authored Dec 9, 2020
2 parents 50e728c + 65d94a9 commit 952a640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ehtim/io/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,8 +1307,8 @@ def load_obs_uvfits(filename, polrep='stokes', flipbl=False, allow_singlepol=Tru
t2 = data['BASELINE'][mask].astype(int) - t1 * 256
t1 = t1 - 1
t2 = t2 - 1
t1 = np.array([tarr[i]['site'] for i in t1])
t2 = np.array([tarr[i]['site'] for i in t2])
t1 = np.array([tarr[np.where(tnums==i)[0][0]]['site'] for i in t1])
t2 = np.array([tarr[np.where(tnums==i)[0][0]]['site'] for i in t2])

# Opacities (not in standard files)
try:
Expand Down

0 comments on commit 952a640

Please sign in to comment.