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

Fixed input file paths in template for rms script to be generated #747

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

oddvarlia
Copy link
Collaborator

Still some field paths in the rms script generated by field_statistics.py that need to be fixed.

@oddvarlia oddvarlia added the bug Something isn't working label Oct 1, 2024
@oddvarlia oddvarlia requested a review from alifbe October 1, 2024 12:28
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.87%. Comparing base (b5b3861) to head (6f44cfc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #747      +/-   ##
==========================================
+ Coverage   85.03%   85.87%   +0.84%     
==========================================
  Files          52       52              
  Lines        7229     7229              
==========================================
+ Hits         6147     6208      +61     
+ Misses       1082     1021      -61     

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

@oddvarlia
Copy link
Collaborator Author

Also fixed test_field_statistics.py by fixing input to a subprocess running field_statistics.py


# Run the main script as a subprocess,but first clean up
# result directory to be sure this test does not re-use
# previous results from previous tests
remove_file_path = result_path / Path("ertbox--*.roff")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is needed. tmp_path will always be a new path every time the test is initiated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, I can remove the subprocess to clean up then.

Copy link
Collaborator

@alifbe alifbe 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 to me. 👍

@oddvarlia oddvarlia merged commit e9d6566 into equinor:main Oct 2, 2024
6 checks passed
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
Development

Successfully merging this pull request may close these issues.

3 participants