Closed dgahle closed 1 year ago
Functionality added and all tests passed. Need to assess warnings in pytests (from xarray interpolation), and write doc strings and.
=========================== test session starts ============================ platform darwin -- Python 3.8.16, pytest-7.1.2, pluggy-1.0.0 rootdir: /Users/daljeet-singh-gahle/github/mast-upgrade-baysar-analysis collected 43 items
tests/test_main.py .. [ 4%] tests/OpenADAS/test_get_adf11.py ......... [ 25%] tests/OpenADAS/test_get_adf15.py ...... [ 39%] tests/OpenADAS/test_read_adf11.py .................. [ 81%] tests/OpenADAS/test_read_adf15.py ........ [100%]
============================= warnings summary ============================= tests/OpenADAS/test_read_adf11.py::TestReadAdf11::test_H_ACD_yr12 tests/OpenADAS/test_read_adf11.py::TestReadAdf11Power::test_H_PLT_yr12 tests/OpenADAS/test_read_adf11.py::TestReadAdf11Power::test_H_PRB_yr12 /Users/daljeet-singh-gahle/opt/anaconda3/envs/mast-upgrade-analysis/lib/python3.8/site-packages/scipy/interpolate/_interpolate.py:698: RuntimeWarning: invalid value encountered in divide slope = (y_hi - y_lo) / (x_hi - x_lo)[:, None]
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ===================== 43 passed, 3 warnings in 13.90s ======================
Open-ADAS (API): ADF11 - get, load, and read functionality with appropriate pytests, docstrings, documentation, and tutorials/examples.