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

Bugfix 329 negative bcmse #344

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Bugfix 329 negative bcmse #344

merged 3 commits into from
Jan 4, 2024

Conversation

bikegeek
Copy link
Collaborator

Pull Request Testing

  • Describe testing already performed for these changes:

  • created and ran test in METcalcpy/metcalcpy/test/test_sl1l2.py using the data Molly provided that results in negative BCMSE values

  • added the test to the GitHub workflow unit_tests.yml

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

    Hank:
    verify that the METcalcpy/metcalcpy/test/test_sl1l2.py passes with the required Python Packages for METcalcpy

    Molly:
    verify that this version is no longer responsible for erroneous plots

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [NA]

  • Do these changes include sufficient testing updates? [Yes]

  • Will this PR result in changes to the test suite? [Yes]

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by before beta3 release.

Pull Request Checklist

See the METplus Workflow for details.

  • Add any new Python packages to the METplus Components Python Requirements table.
  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select the ⚙️ icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

Copy link
Collaborator

@mollybsmith-noaa mollybsmith-noaa left a comment

Choose a reason for hiding this comment

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

This does remove the thrown error, but I should point out that the pre-rounding of the components before the final statistic is calculated is going to make our result values slightly off. Are we okay with this?

@bikegeek
Copy link
Collaborator Author

bikegeek commented Jan 4, 2024 via email

@bikegeek
Copy link
Collaborator Author

bikegeek commented Jan 4, 2024 via email

@bikegeek
Copy link
Collaborator Author

bikegeek commented Jan 4, 2024

Here is Tatiana's explanation of why there is rounding:

Rscript performs rounding with 5 digits for all stats. This was implemented to remove the "noise" from plots and output ASCII files.
We decided to increase the number of digits to 7 in Python because of the MET output where the numbers are rounded to 7 digits.

@mollybsmith-noaa
Copy link
Collaborator

Okay, if we're rounding to 5 digits that should be fine. I was expecting less precision, as this was based on an older script.

@bikegeek bikegeek merged commit f87fa10 into develop Jan 4, 2024
6 checks passed
@bikegeek bikegeek deleted the bugfix_329_negative_bcmse branch January 4, 2024 18:48
jprestop added a commit that referenced this pull request Feb 2, 2024
* Prepare for next release

* add missing end quote to fix package install

* reset_index is performed on the float value #322 (#323)

* Update release notes (#328)

* Update release-notes.rst formatting

* Update and rename 2.1.0_wcoss2 to 3.0.0_wcoss2

* loop over statistics only once to avoid data multiplication #330 (#331)

* Added sphinx_rtd_theme to extensions

* Updated requirements.txt

* Added pillow

* feature 497 headers (#336)

* changing header for continuity

* Modified the other headers in the file to be consistent with other repos

---------

Co-authored-by: Julie Prestopnik <[email protected]>

* Beta2 release (#338)

* Next version

* Feature 332 di doc (#333)

* Add difficulty index documentation

* Add more documentation

* Add more definition

* Fix indent

* Add figure

* fix indentation

* fix equations

* Add table

* Added remaining tables

* fix table issue

* Add links

* formatting

* change link to latest

---------

Co-authored-by: Tracy <[email protected]>

* Additions to beta2 release (#340)

* Next beta

* Bugfix 329 negative bcmse (#344)

* Issue #329 return 0 if negative BCMSE value is calculated

* Issue #329 add test for calculate_bcmse() in the sl1l2_statistics module

* Issue #392 added test_sl1l2.py to the list of pytests to run

* command line updates

* updating yaml file

---------

Co-authored-by: Hank Fisher <[email protected]>
Co-authored-by: George McCabe <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: Tatiana Burek <[email protected]>
Co-authored-by: jprestop <[email protected]>
Co-authored-by: Tracy Hertneky <[email protected]>
Co-authored-by: Tracy <[email protected]>
Co-authored-by: bikegeek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants