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

Fix numpy random seed for PySMO test #1264

Merged
merged 9 commits into from
Sep 8, 2023

Conversation

OOAmusat
Copy link
Contributor

@OOAmusat OOAmusat commented Sep 7, 2023

Fixes

#1258

Summary/Motivation:

A possible spurious failure was observed in one run of trhe PySMO kriging test (#1258). The error is due to random number generation with numpy, so this change aims to fix the seed for that specific test.

Changes proposed in this PR:

  • Fix numpy random number generator seed for specific test

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

Copy link
Contributor

@bpaul4 bpaul4 left a comment

Choose a reason for hiding this comment

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

Looks good pending the tests. Thanks for the fix @OOAmusat!

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (5abe575) 76.73% compared to head (4d2fa20) 76.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1264      +/-   ##
==========================================
- Coverage   76.73%   76.72%   -0.01%     
==========================================
  Files         382      382              
  Lines       61232    61232              
  Branches    11297    11297              
==========================================
- Hits        46985    46982       -3     
- Misses      11813    11817       +4     
+ Partials     2434     2433       -1     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

@lbianchi-lbl lbianchi-lbl enabled auto-merge (squash) September 8, 2023 22:53
@lbianchi-lbl lbianchi-lbl merged commit 02c20ac into IDAES:main Sep 8, 2023
40 checks passed
lbianchi-lbl pushed a commit that referenced this pull request Sep 14, 2023
* Minor change to trigger tests

* Added abs to tolerance check

* Run black

* Remove string comparison

* Tighten tolerance

* Fixed kriging test by removing variable dependence

* Fixing random seed for kriging test

(cherry picked from commit 02c20ac)
@ksbeattie ksbeattie added the Priority:High High Priority Issue or PR label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:High High Priority Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible spurious failure in Pysmo kriging tests
4 participants