Skip to content

Commit

Permalink
Merge branch 'main' into nonbasic-ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-a-cox authored Jul 5, 2024
2 parents eb6388f + a0b3292 commit 0ed2783
Show file tree
Hide file tree
Showing 6 changed files with 973 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python -m build
- name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PyPI }}
6 changes: 3 additions & 3 deletions hera_cal/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,9 @@ def get_file_times(filepaths, filetype='uvh5'):
else:
# need to generate lst_array on the fly
lst_array = np.ravel(uvutils.get_lst_for_time(_f[u'Header'][u'time_array'],
_f[u'Header'][u'latitude'][()],
_f[u'Header'][u'longitude'][()],
_f[u'Header'][u'altitude'][()]))
latitude=_f[u'Header'][u'latitude'][()],
longitude=_f[u'Header'][u'longitude'][()],
altitude=_f[u'Header'][u'altitude'][()]))

# figure out which baseline has the most times in order to handle BDA appropriately
baseline_array = uvutils.antnums_to_baseline(
Expand Down
1 change: 0 additions & 1 deletion hera_cal/lst_stack/averaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ def average_and_inpaint_simultaneously_single_bl(
CNinv_data_dpss = np.array([
basis.T.dot(weighted_data) for weighted_data in mask[:, band] / noise_var[:, band] * stackd[:, band]
])
print(CNinv_data_dpss.shape, CNinv_data_dpss.shape)
dpss_fits = np.array([
a.dot(b) if np.all(np.isfinite(b)) else a.dot(np.zeros_like(b))
for a, b in zip(CNinv_dpss_inv, CNinv_data_dpss)
Expand Down
Loading

0 comments on commit 0ed2783

Please sign in to comment.