Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2025
1 parent 51f9ddb commit 9a4eb3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/pyuvsim/simsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,11 +1110,7 @@ def _construct_beam_list(

select = telconfig.pop("select", {})
freq_buffer = select.pop("freq_buffer", None)
if (
freq_range is not None
and "freq_range" not in select
and freq_buffer is None
):
if freq_range is not None and "freq_range" not in select and freq_buffer is None:
select["freq_range"] = freq_range
if freq_buffer is not None and "freq_range" not in select:
freq_arr_val = freq_array
Expand Down
4 changes: 3 additions & 1 deletion tests/test_simsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,9 @@ def test_simsetup_with_obsparam_freq_buffer():


def test_simsetup_with_freq_buffer():
fl = os.path.join(SIM_DATA_PATH, "test_config", "obsparam_diffuse_sky_freqbuf_tel.yaml")
fl = os.path.join(
SIM_DATA_PATH, "test_config", "obsparam_diffuse_sky_freqbuf_tel.yaml"
)

_, beams, _ = simsetup.initialize_uvdata_from_params(fl, return_beams=True)

Expand Down

0 comments on commit 9a4eb3a

Please sign in to comment.