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

hydro2023 fix #100

Merged
merged 19 commits into from
Dec 20, 2024
Merged

hydro2023 fix #100

merged 19 commits into from
Dec 20, 2024

Conversation

bczernecki
Copy link
Owner

Hot fixes for monthly and daily hydro dataset that include different encodings and seperator characters.

@bczernecki bczernecki self-assigned this Oct 20, 2024
@bczernecki bczernecki linked an issue Oct 20, 2024 that may be closed by this pull request
@bczernecki bczernecki requested a review from Nowosad October 20, 2024 17:38
Copy link

codecov bot commented Oct 20, 2024

Codecov Report

Attention: Patch coverage is 94.38202% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.83%. Comparing base (68af360) to head (5415429).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
R/hydro_imgw_daily.R 95.45% 2 Missing ⚠️
R/hydro_imgw.R 0.00% 1 Missing ⚠️
R/hydro_metadata_imgw.R 0.00% 1 Missing ⚠️
R/nearest_stations_imgw.R 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   83.71%   87.83%   +4.11%     
==========================================
  Files          32       29       -3     
  Lines        1750     1619     -131     
==========================================
- Hits         1465     1422      -43     
+ Misses        285      197      -88     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bczernecki bczernecki added the bug Something isn't working label Oct 20, 2024
@bczernecki
Copy link
Owner Author

@Nowosad ready for re-review

@bczernecki bczernecki linked an issue Oct 28, 2024 that may be closed by this pull request
@Nowosad
Copy link
Collaborator

Nowosad commented Oct 31, 2024

devtools::load_all()
#> ℹ Loading climate
h2022 = hydro_imgw_monthly(2022)
#> /tmp/Rtmphey1As/file196d36654abf4
#> /tmp/Rtmphey1As/file196d32351d8f5
#> /tmp/Rtmphey1As/file196d356036c71
h2023 = hydro_imgw_monthly(2023)
#> /tmp/Rtmphey1As/file196d3341d7c9e
#> /tmp/Rtmphey1As/file196d31bb006c6
#> /tmp/Rtmphey1As/file196d36f58fb13
h2024 = hydro_imgw_monthly(2024)
#> /tmp/Rtmphey1As/file196d34142d196
#> Problems with downloading data. Run function with argument allow_failure = FALSE to see more details

One question @bczernecki -- no data for 2024 exist yet?

@bczernecki
Copy link
Owner Author

One question @bczernecki -- no data for 2024 exist yet?

Not yet

@Nowosad
Copy link
Collaborator

Nowosad commented Oct 31, 2024

One more question -- why meteo_imgw_datastore() returns a data.table and the rest (?) of the functions return a regular data frame? Is there a reason for this inconsistency?

@bczernecki
Copy link
Owner Author

One more question -- why meteo_imgw_datastore() returns a data.table and the rest (?) of the functions return a regular data frame? Is there a reason for this inconsistency?

This is the largest of all datasets (10-min time resolution) and it is based on data.table which is significantly faster. On the other hand it has consistent structure contrary to other IMGW datasets which varies in terms of columns order, etc... so this is exception only for this dataset. However, we can think about wrapping it into as.data.frame() before return statement

@bczernecki bczernecki requested a review from Nowosad October 31, 2024 12:51
@bczernecki bczernecki linked an issue Nov 1, 2024 that may be closed by this pull request
@bczernecki bczernecki merged commit 9f7e5b9 into master Dec 20, 2024
11 checks passed
@bczernecki bczernecki deleted the 99-hydro2023-fix branch December 23, 2024 12:02
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
2 participants