Skip to content

Commit 93a2336

Browse files
committed
ci: fix pip install
1 parent 2a097aa commit 93a2336

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install
1818
run: |
19-
pip install .[dev]
19+
pip install -e .[dev]
2020
- name: Test with pytest
2121
run: pytest --cov=./ --cov-report=xml
2222
- name: Upload coverage to Codecov

aipy/_version.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file generated by setuptools_scm
2+
# don't change, don't track in version control
3+
__version__ = version = '3.0.2.dev31+g2a097aa.d20230104'
4+
__version_tuple__ = version_tuple = (3, 0, 2, 'dev31', 'g2a097aa.d20230104')

aipy/healpix.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def __getitem__(self, crd):
232232
px,wgts = self.crd2px(*crd, **{'interpolate':1})
233233
return np.sum(self.map[px] * wgts, axis=-1)
234234
else: px = self.crd2px(*crd)
235-
else: px = mk_arr(crd, dtype=np.long)
235+
else: px = mk_arr(crd, dtype=np.int64)
236236
return self.map[px]
237237
def __setitem__(self, crd, val):
238238
"""Assign data to a sphere via hpm[crd] = val. Functionality slightly
@@ -245,7 +245,7 @@ def __setitem__(self, crd, val):
245245
px = self.crd2px(*crd)
246246
else:
247247
if type(crd) is np.ndarray: assert(len(crd.shape) == 1)
248-
px = mk_arr(crd, dtype=np.int)
248+
px = mk_arr(crd, dtype=int)
249249
if px.size == 1:
250250
if type(val) is np.ndarray: val = mk_arr(val, dtype=self.map.dtype)
251251
self.map[px] = val

tests/phs_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,9 @@ def test_antenna_array_gen_phs(test_antenna_array):
462462
def test_antenna_array_resolve_src(test_antenna_array):
463463
ants, aa = test_antenna_array
464464
# we get a runtime warning when x ~ 0
465-
with pytest.warns(RuntimeWarning) as record:
465+
with pytest.warns(RuntimeWarning, match="invalid value encountered in") as record:
466466
amp = aa.resolve_src(100.0, 100.0, srcshape=(0, 0, 0))
467467
assert len(record) == 1
468-
assert record[0].message.args[0] == "invalid value encountered in double_scalars"
469468

470469
# check that value is correct
471470
assert amp == 1

0 commit comments

Comments
 (0)