zjf014 / hydro-opendata

MIT License
3 stars 5 forks source link

Error for reading GFS #3

Closed OuyangWenyu closed 1 year ago

OuyangWenyu commented 1 year ago

Environment Information

Description

运行文档里面的测试代码有bug: def test_read_gfs(aoi_shp, creation_date): gfs = GFSReader()

  ds3 = gfs.from_aoi(

data_variable="tp", creation_date=creation_date, creation_time="00", aoi=aoi_shp ) E TypeError: GFSReader.from_aoi() got an unexpected keyword argument 'data_variable'

tests\test_aoi_reading.py:63: TypeError ========================================================================================= warnings summary ========================================================================================= ......\miniconda3\envs\opendata\Lib\site-packages\botocore\utils.py:25 C:\Users\wenyu\miniconda3\envs\opendata\Lib\site-packages\botocore\utils.py:25: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 import cgi

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ===================================================================================== short test summary info ====================================================================================== FAILED tests/test_aoi_reading.py::test_read_gfs - TypeError: GFSReader.from_aoi() got an unexpected keyword argument 'data_variable' ======================================================================== 1 failed, 2 passed, 1 warning in 90.84s (0:01:30) =========================================================================

OuyangWenyu commented 1 year ago

我已经处理掉了,pull request发过了