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 Dec 13, 2024
1 parent f65001c commit 33deb47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/py21cmsense/observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def from_ska(
from ska_ost_array_config.array_config import LowSubArray, MidSubArray
except ImportError:
raise ImportError(
"ska-ost-array-config package is required, "+
"see https://gitlab.com/ska-telescope/ost/ska-ost-array-config"
"ska-ost-array-config package is required, "
+ "see https://gitlab.com/ska-telescope/ost/ska-ost-array-config"
)
if array_type == "low":
subarray = LowSubArray(subarray_type, **kwargs)
Expand Down
7 changes: 4 additions & 3 deletions tests/test_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ def test_from_yaml(bm):


def test_from_ska():
Observatory.from_ska(subarray_type="AA*", array_type="low", frequency=300.*units.MHz)
Observatory.from_ska(subarray_type="AA*", array_type="mid", frequency=300.*units.MHz)
Observatory.from_ska(subarray_type="AA4", array_type="low", frequency=300.*units.MHz)
Observatory.from_ska(subarray_type="AA*", array_type="low", frequency=300.0 * units.MHz)
Observatory.from_ska(subarray_type="AA*", array_type="mid", frequency=300.0 * units.MHz)
Observatory.from_ska(subarray_type="AA4", array_type="low", frequency=300.0 * units.MHz)


def test_get_redundant_baselines(bm):
a = Observatory(antpos=np.array([[0, 0, 0], [1, 0, 0], [2, 0, 0]]) * units.m, beam=bm)
Expand Down

0 comments on commit 33deb47

Please sign in to comment.