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

Update dataframe_utilities for threshold/realization data #1696

Closed

Conversation

btrotta-bom
Copy link
Contributor

Update dataframe_utilities to work with dataframes having a threshold or realization column instead of percentile.

@anja-bom

Description

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

@btrotta-bom btrotta-bom changed the title Dataframe utilities updates Update dataframe_utilities for threshold/realization data Apr 1, 2022
@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

Merging #1696 (0dbc568) into master (3dcbe8d) will increase coverage by 0.00%.
The diff coverage is 98.76%.

@@           Coverage Diff           @@
##           master    #1696   +/-   ##
=======================================
  Coverage   98.18%   98.18%           
=======================================
  Files         112      112           
  Lines       10334    10396   +62     
=======================================
+ Hits        10146    10207   +61     
- Misses        188      189    +1     
Impacted Files Coverage Δ
improver/calibration/dataframe_utilities.py 99.45% <98.76%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dcbe8d...0dbc568. Read the comment docs.

var_type = variable
else:
continue

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to change the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean because of the code coverage issue? I was also confused about this, because the tests do include a case where the continue statement would be executed. Apparently this is a known issue, due to the way the python optimizer works nedbat/coveragepy#198

return cubelist.merge_cube()

cube = cubelist.merge_cube()
cube.attributes["cube_type"] = "observations"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably need to differentiate between obs and analyses? Where was this set previously ? Was it set? How do UKMO set this?

@btrotta-bom
Copy link
Contributor Author

Closing for now, until format of input data is decided.

@btrotta-bom btrotta-bom closed this Apr 4, 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