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

Refactor urlopen import #57

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Refactor urlopen import #57

merged 1 commit into from
Aug 31, 2022

Conversation

vinisalazar
Copy link
Contributor

Hi,

This PR modifies the import of the urlopen function to suit new versions of erddapy, where the url_handling module will be deprecated. It does not break compatibility with older versions (the urlopen function is available from the erddapy.erddapy module).

Summary of changes

  • Import 'urlopen' function from erddapy.erddapy module

Side note: while doing this change, I noticed that the https://erddap-uncabled.oceanobservatories.org/uncabled/erddap URL used in test_standardise_variables_uncabled is no longer valid, so checks will probably fail. There is an ERDDAP server at https://erddap.dataexplorer.oceanobservatories.org/erddap/index.html but I wasn't sure of which dataset to use.

@vinisalazar
Copy link
Contributor Author

Pre-commit seems to be sorted, for the failing test I think we will have to change the URL used in test_standardise_variables_uncabled.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
@ocefpaf
Copy link
Member

ocefpaf commented Aug 31, 2022

Pre-commit seems to be sorted, for the failing test I think we will have to change the URL used in test_standardise_variables_uncabled.

Let's mark that one as known failure. We need to test that against more datasets and I'm looking into that.

  - Import 'urlopen' function from erddapy.erddapy module

  The 'url_handling' module will be deprecated in the next version of erddapy.
@vinisalazar
Copy link
Contributor Author

Rebased after #58 was merged.

@ocefpaf ocefpaf merged commit bb5703d into ioos:main Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants