MHKiT-Software / MHKiT-Python

MHKiT-Python provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
https://mhkit-software.github.io/MHKiT/
BSD 3-Clause "New" or "Revised" License
50 stars 45 forks source link

Fix wave elevation function. #143

Closed cmichelenstrofer closed 2 years ago

cmichelenstrofer commented 2 years ago

Fixes #140. Fixes #142.

cmichelenstrofer commented 2 years ago

@ssolson and @rpauly18 could you review this?

rpauly18 commented 2 years ago

@cmichelenstrofer happy to review this. Are you still working on the fix for why the tests are failing, or would you like for me to look into this?

cmichelenstrofer commented 2 years ago

@rpauly18 I just fixed the tests. You can go ahead and review it. Thanks!

cmichelenstrofer commented 2 years ago

@rpauly18 just changed it from 'draft' to 'ready to review'. I deleted the two obsolete tests that I had commented out.

cmichelenstrofer commented 2 years ago

Something wrong with the tests. They were passing before and nothing changed other than deleting comments. Seems the issue is not with this PR but with accessing some data at NREL needed for the tests.

requests.exceptions.RetryError: HTTPSConnectionPool(host='developer.nrel.gov', port=443): 
Max retries exceeded with url: /api/hsds/datasets/d-9db3e298-adf30787-6aa4-5dda8d-a672ee?domain=%2Fnrel%2FUS_wave%2Fvirtual_buoy%2FWest_Coast%2FWest_Coast_virtual_buoy_1995.h5&api_key=3K3JQbjZmWctY0xmIfSYvYgtIcM3CN0cb1Y2w9bf 
(Caused by ResponseError('too many 503 error responses'))
rpauly18 commented 2 years ago

@cmichelenstrofer random failures happen sometimes because of the WPTO hindcast server being overloaded with request. I restarted the tests. If they fail again, I will investigate further.

cmichelenstrofer commented 2 years ago

@rpauly18 can this be merged?