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

without change, deprecation warning is called a lot #60

Merged
merged 3 commits into from
Jul 7, 2024

Conversation

kthyng
Copy link
Contributor

@kthyng kthyng commented Jun 21, 2024

and it is very annoying

added another fixed based on a test which caught an error type explicitly that was previously ignored.
Also altered the pyproject.toml to make the versions minimums instead of carrot-based to loosen restrictions
and make this easier to incorporate into projects.
@kthyng
Copy link
Contributor Author

kthyng commented Jun 27, 2024

@GClunies Mind taking a look at this? Also addresses my recent comment #51 (comment)

@GClunies
Copy link
Owner

@kthyng

and it is very annoying

I agree deprecation warnings are annoying. But next time, can you include example code that demonstrates the issue instead of just calling it out as annoying? This is free, open-source software. This is not my job. The last time I worked with NOAA data was over 5 years ago, so any updates I make are to help others - the original motivation behind this project.

Can you remove the version dependency changes and open a separate PR for that so I can assess in isolation - the poetry caret notation should be similar to what you are proposing.

@kthyng
Copy link
Contributor Author

kthyng commented Jun 29, 2024

Sorry, I had imagined us on the same side against it being annoying, not me calling your code annoying. Plus, I fixed it! But yes, I can do these things next week.

@kthyng
Copy link
Contributor Author

kthyng commented Jul 5, 2024

Here is an example from your tests:

import noaa_coops as nc
seattle = nc.Station(id="9447130")
df = seattle.get_data(
         begin_date="20150101",
         end_date="20150131",
         product="water_level",
         datum="MLLW",
)

will return

/Users/kthyng/projects/noaa_coops/noaa_coops/station.py:742: FutureWarning: errors='ignore' is deprecated and will raise in a future version. Use to_numeric without passing `errors` and catch exceptions explicitly instead
  df[col] = pd.to_numeric(df[col], errors="ignore")

without these changes.

@kthyng
Copy link
Contributor Author

kthyng commented Jul 5, 2024

And the version dependency PR is here: #61

@GClunies
Copy link
Owner

GClunies commented Jul 7, 2024

Thanks @kthyng, approved. Taking at look at #61 next.

@GClunies GClunies merged commit 7917a79 into GClunies:master Jul 7, 2024
4 checks passed
@kthyng kthyng deleted the small_fix branch July 17, 2024 14:47
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