-
Notifications
You must be signed in to change notification settings - Fork 30
Refactor test 'test_to_xarray_opendap' #253
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
Conversation
- Refactor test to use NERACOOS WW3_EastCoast_latest dataset - Modify fixture 'dataset_opendap'
|
Hmm, it might be easier to figure out what is going on with a failing test. |
|
I think the test was working in the end (checks passed for #252), but I thought it would be nice to follow up on the suggestion of using the NERACOOS server instead of the CSWC one? Apologies if I misunderstood that. |
|
I mean if a change to using NERACOOS is causing things to fail, then adding failing test. Then we can debug the test to figure out if the fix is needed in erddapy or with our ERDDAP. Staying with Coastwatch is likely to get us to have more random failures as Bob is much more aggressive with his blocklist than we are (though sometimes Cloudflare in front of our ERDDAP ends up problematic too). |
|
Thanks @abkfenris, that makes sense. I don't think it was the server change which was causing things to fail, but rather the interaction between the In #252, I edited the def dataset_opendap():
"""Load griddap data with OPeNDAP response for testing."""
cswc = ERDDAP(server="CSWC", protocol="griddap", response="opendap")
cswc.dataset_id = "jplAquariusSSS3MonthV5"
cswc.griddap_initialize()
yield cswcReturns this: To work around this, when I submitted #252, I created a new test fixture using the server shown in Since the Coastwatch server may present random failures, I thought it would be better to stick with the NERACOOS server, so I refactored the I hope this makes it clearer! Apologies for the lengthy description. Thinking about this again, I'm considering removing the Please let me know what you think is the best course of action to take here! Best, |
|
Hmm, maybe this is something that it's better to leave a bit awkward for now, and address in the larger refactoring, even though it might be possible to tweak or add empty constraints/variables to I think when we refactor we can be more opinionated in at the So, |
Hi,
this is a follow-up to the discussion in #252. I got the test to work with the NERACOOS server. But there's a catch: the OPeNDAP request seems to fail after running the
griddap_initializemethod. My impression is that happens because that when that method is called, it adds the dataset bounds to the download URL, and thexarray.open_datasetmethod doesn't handle that well. I will look into that soon.Summary of changes
Please feel free to request any changes.
Thank you,
Vini