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

Suppress NWIS Client value_time warning #187

Merged
merged 3 commits into from Mar 23, 2022

Conversation

jarq6c
Copy link
Collaborator

@jarq6c jarq6c commented Mar 23, 2022

Small PR to remove the check for value_time per #117 . Also, added a catch for an empty dataframe warning in one of the tests.

Additions

  • None

Removals

  • Check for value_time default.

Changes

  • Empty dataframe warning in test is caught.

Testing

Notes

Todos

Checklist

  • PR has an informative and human-readable title
  • PR is well outlined and documented. See #12 for an example
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (see CONTRIBUTING.md)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output) using numpy docstring formatting
  • Placeholder code is flagged / future todos are captured in comments
  • Reviewers requested with the Reviewers tool ➡️

@jarq6c jarq6c added the bug Something isn't working label Mar 23, 2022
@jarq6c jarq6c self-assigned this Mar 23, 2022
@jarq6c
Copy link
Collaborator Author

jarq6c commented Mar 23, 2022

Passes all tests.

@jarq6c jarq6c merged commit acd6671 into NOAA-OWP:main Mar 23, 2022
@jarq6c jarq6c deleted the nwis_warn_fix_117 branch March 23, 2022 20:16
@aaraney
Copy link
Member

aaraney commented Mar 24, 2022

Thanks for taking care of this, @jarq6c!

@aaraney
Copy link
Member

aaraney commented Mar 24, 2022

Going ahead and deploying 3.2.1 of nwis_client. Ill post a comment with the deployment once it is live

@aaraney
Copy link
Member

aaraney commented Mar 24, 2022

Up now

@aaraney
Copy link
Member

aaraney commented Mar 24, 2022

I noticed a few warning when running the unit tests before uploading to pypi. namely:

===================================================================================================== warnings summary =====================================================================================================
venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28
  ~/github/hydrotools_fork/python/nwis_client/venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28: DeprecationWarning: The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of pytest-aiohttp backward compatibility. Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
    config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)

tests/test_nwis.py: 62 warnings
  ~/github/hydrotools_fork/python/nwis_client/venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:33: DeprecationWarning: 'loop' fixture is deprecated and scheduled for removal, please use 'event_loop' instead
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

I can address these in a future PR when I fix the slow unit tests that are failing as well.

@jarq6c
Copy link
Collaborator Author

jarq6c commented Mar 24, 2022

Thanks @aaraney !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update nwis client to canonical format
2 participants