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 execution options APIs #529

Merged
merged 11 commits into from
Dec 23, 2024
Merged

Update execution options APIs #529

merged 11 commits into from
Dec 23, 2024

Conversation

waltsims
Copy link
Owner

Removes changes from user brubbel in case that they do not give concent for relicensing.

@waltsims waltsims marked this pull request as draft December 14, 2024 21:54
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

Attention: Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.83%. Comparing base (6ccc328) to head (0205e08).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
kwave/kspaceFirstOrder3D.py 0.00% 1 Missing ⚠️
kwave/kspaceFirstOrderAS.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #529      +/-   ##
==========================================
- Coverage   72.83%   72.83%   -0.01%     
==========================================
  Files          46       46              
  Lines        6789     6803      +14     
  Branches     1305     1304       -1     
==========================================
+ Hits         4945     4955      +10     
- Misses       1287     1295       +8     
+ Partials      557      553       -4     
Flag Coverage Δ
3.10 72.83% <94.87%> (-0.01%) ⬇️
3.11 72.83% <94.87%> (-0.01%) ⬇️
3.12 72.83% <94.87%> (-0.01%) ⬇️
3.13 72.83% <94.87%> (-0.01%) ⬇️
macos-latest 72.80% <94.87%> (-0.01%) ⬇️
ubuntu-latest 72.80% <94.87%> (-0.01%) ⬇️
windows-latest 72.82% <94.87%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -32,9 +32,8 @@ def _make_binary_executable(self):
raise FileNotFoundError(f"Binary not found at {binary_path}")
binary_path.chmod(binary_path.stat().st_mode | stat.S_IEXEC)

def run_simulation(self, input_filename: str, output_filename: str, options: str):
command = [str(self.execution_options.binary_path), "-i", input_filename, "-o", output_filename]
command.extend(options.split(' '))
Copy link
Owner Author

Choose a reason for hiding this comment

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

This line was contributed by bubbel and needs to be removed if they do not agree to new license

@waltsims waltsims self-assigned this Dec 15, 2024
@waltsims waltsims marked this pull request as ready for review December 15, 2024 00:04
tests/test_simulation_execution_options.py Outdated Show resolved Hide resolved
tests/test_simulation_execution_options.py Outdated Show resolved Hide resolved
@waltsims
Copy link
Owner Author

waltsims commented Dec 15, 2024

This PR aims to remove code contributed by Brubbel but refactors in the process

@waltsims waltsims requested review from faridyagubbayli and removed request for faridyagubbayli December 15, 2024 00:20
@faridyagubbayli
Copy link
Collaborator

@waltsims given that the user has given consent, do we still need this PR?

@waltsims
Copy link
Owner Author

@faridyagubbayli it improves the apis and removes extra spaces from the option strings. These improvements are still useful in my opinion

Copy link
Collaborator

@faridyagubbayli faridyagubbayli left a comment

Choose a reason for hiding this comment

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

LGTM!

@waltsims waltsims changed the title Sanitize repository for relicensing Update execution options APIs Dec 23, 2024
@waltsims waltsims merged commit 9232002 into master Dec 23, 2024
104 checks passed
@waltsims waltsims deleted the sanitize-for-relicensing branch December 23, 2024 23:58
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