Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidegauge.read_bodc() update #622

Open
jpolton opened this issue Aug 24, 2023 · 0 comments
Open

tidegauge.read_bodc() update #622

jpolton opened this issue Aug 24, 2023 · 0 comments

Comments

@jpolton
Copy link
Collaborator

jpolton commented Aug 24, 2023

See branch on PR

tidegauge.read_bodc() object has a different data structure from tidegauge.read_gesla() object. The latter is used more extensively and is assumed to be the template/default.

I noticed that the unit testing for objects created with tidegauge.read_bodc() was missing. So I cut and pasted the tests used for tidegauge.read_gesla() in unit_testing/test_tidegauge_methods.py. The test:

python -m pytest unit_testing/test_tidegauge_methods.py

has 2 errors, which look related to unexpected data shapes:

FAILED unit_testing/test_tidegauge_methods.py::test_tidegauge_methods::test_read_bodc_and_compare_to_model - AssertionError: False is not true : check1
FAILED unit_testing/test_tidegauge_methods.py::test_tidegauge_methods::test_tidegauge_cubic_spline_extrema - ValueError: operands could not be broadcast together with shapes (0,) (2,)

AC:

  • Get unit_testing/test_tidegauge_methods.py working

Optional:

  • The unit test code is repetitious - it may be better to test the objects created by read_gesla() and read_bodc() are as expected and then test the methods only once?
@jpolton jpolton converted this from a draft issue Aug 24, 2023
@jpolton jpolton moved this from MSM - todo to MSM - in progress in COAsT_dev Nov 6, 2023
@jpolton jpolton changed the title read_bodc() update tidegauge.read_bodc() update Nov 6, 2023
@jpolton jpolton linked a pull request Nov 6, 2023 that will close this issue
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: MSM - in progress
Development

Successfully merging a pull request may close this issue.

1 participant