Skip to content

Commit

Permalink
Merge pull request #846 from HERA-Team/lstbin-improvements
Browse files Browse the repository at this point in the history
Lstbin improvements
  • Loading branch information
steven-murray committed Jun 23, 2023
2 parents c7fdf56 + bf4d418 commit e68775a
Show file tree
Hide file tree
Showing 28 changed files with 5,895 additions and 12,604 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:

- name: Install
run: |
pip install --upgrade pip
pip install .[dev]
- name: Run Tests
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ hera_cal/data/zen.*.sum.bda.downsampled.redcal_meta.hdf5

htmlcov/
cache_temp/

# Scalene profiling output
profile.json
profile.html
.benchmarks/*
4 changes: 1 addition & 3 deletions ci/hera_cal_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ dependencies:
- jaxlib
- optax
- line_profiler

- pyuvdata>=2.3.3
- pip:
- git+https://github.com/RadioAstronomySoftwareGroup/pyuvdata
# - git+https://github.com/HERA-Team/aipy
- git+https://github.com/HERA-Team/hera_filters
- git+https://github.com/HERA-Team/linsolve
- git+https://github.com/HERA-Team/hera_qm
Expand Down
3 changes: 1 addition & 2 deletions hera_cal/_cli_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def run_script(**kwargs):
Then, any logging statements in hera_cal code (or your own code in the interactive
session) will have the desired logging behavior.
"""
from __future__ import annotations

Expand Down Expand Up @@ -583,4 +582,4 @@ def filter_kwargs(kwargs: dict) -> dict:
not k.startswith("profile_") and
not k.startswith("log_")
)
}
}
3 changes: 1 addition & 2 deletions hera_cal/abscal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2450,7 +2450,6 @@ def match_times(datafile, modelfiles, filetype='uvh5', atol=1e-5):

return match


def cut_bls(datacontainer, bls=None, min_bl_cut=None, max_bl_cut=None, inplace=False):
"""
Cut visibility data based on min and max baseline length.
Expand Down Expand Up @@ -4322,6 +4321,7 @@ def run_model_based_calibration(data_file, model_file, output_filename, auto_fil
ref_antenna_name=refant_init, sky_catalog=f'{model_file}',
metadata_only=False, sky_field=field_str, cal_type='gain',
future_array_shapes=True)

hc = io.to_HERACal(hc)
hc.update(flags=data_ant_flags)
# generate cal object from model to hold model flags.
Expand Down Expand Up @@ -4422,7 +4422,6 @@ def run_model_based_calibration(data_file, model_file, output_filename, auto_fil

# update the calibration array.
hc.update(gains=abscal_gains)

hc.write(output_filename, clobber=clobber, spoof_missing_channels=spoof_missing_channels)


Expand Down
Loading

0 comments on commit e68775a

Please sign in to comment.