You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
def loadhires(fn: Path, downsample: int = None) -> xarray.DataArray:
"""
loads and modifies GOES data
"""
if netCDF4 is None:
raise ImportError("netCDF4 needed for hires data. pip install netcdf4")
with netCDF4.Dataset(fn, "r") as f:
t = datetime.utcfromtimestamp(f["time"][:])
E TypeError: only integer scalar arrays can be converted to a scalar index
../io.py:87: TypeError
============================================================================================= short test summary info =============================================================================================
FAILED test_all.py::test_load_hires - TypeError: only integer scalar arrays can be converted to a scalar index
=========================================================================================== 1 failed, 1 passed in 0.17s ===========================================================================================
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
when I try to run the tests:
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.5, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3.8
cachedir: .pytest_cache
rootdir: /home/flavio/dados/goes/lfa/goespy/GOESplot-master, configfile: pytest.ini
collected 2 items
test_all.py::test_load_preview PASSED [ 50%]
test_all.py::test_load_hires FAILED [100%]
==================================================================================================== FAILURES =====================================================================================================
_________________________________________________________________________________________________ test_load_hires _________________________________________________________________________________________________
test_all.py:18:
../io.py:54: in load
img = loadhires(fn, downsample)
fn = PosixPath('/home/flavio/data/goespy/GOESplot-master/goesplot/tests/goes13.2017.233.080017.BAND_02.nc'), downsample = None
E TypeError: only integer scalar arrays can be converted to a scalar index
../io.py:87: TypeError
============================================================================================= short test summary info =============================================================================================
FAILED test_all.py::test_load_hires - TypeError: only integer scalar arrays can be converted to a scalar index
=========================================================================================== 1 failed, 1 passed in 0.17s ===========================================================================================
The text was updated successfully, but these errors were encountered: