Skip to content

Conversation

@peterhollender
Copy link
Contributor

@peterhollender peterhollender commented Jul 1, 2024

Closes #9 by removing the gridweights interface altogether. I don't think that the implementation on my fork is going to be how a first-party fix gets completed, so it's not really worth keeping, and the performance on master seems to have improved at least somewhat, perhaps from another commit.

Also incidentally fixes an issue where non-GPU based simulation wasn't getting called, which closes #22

Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

Commits are separated out nicely with each commit doing one thing, that's great

To start following our new guidelines in CONTRIBUTING.md:

  • Every commit should reference the issue number with which it is associated.

can you make sure that issue numbers are referenced in the title and or body of each commit? It looks like two of the three commits are associated with #9. For the commit about adding the ability to disable gpu, you would have to open a new issue with a description of the thing being done (super short description is fine -- we just want to track which changes are for which requirement) and then reference that new issue in the commit.

For editing commit messages I usually do this by an interactive rebase -- let me know on discord or wherever if you could use help with that

"execution_count": 12,
"metadata": {},
"outputs": [],
"outputs": [
Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim Jul 1, 2024

Choose a reason for hiding this comment

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

Did you mean to include cell outputs in this commit? It will be better to clear all cell output to avoid bloating the repo.

(This will stop being an issue once we do #15 😄 -- I can prioritize that next if interested)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did an interactive rebase and chose to reword the commits, but now I'm seeing a second set of them tracked in this PR... guessing I didn't fix that correctly

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interactive rebase will change the commit hashes, so that's correct actually!
You would have to force-push the new commits to replace the previous commit history:

git push --force-with-lease

Regarding removing cell outputs: adding an additional commit that removes the cell output still leaves the output in the commit history, which continues to bloat the repo. What's needed ultimately is to change that commit that introduces the output and remove the output from it. Alternatively, the two commits (the one that introduces cell output and the one that removes it) can be squashed to achieve that same effect. Happy to hop onto a call if I can help in any way!

Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim Jul 1, 2024

Choose a reason for hiding this comment

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

(It looks like you did force-push so that's good.)

(But I see a confusing merge commit so maybe something went wrong?)

Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

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

It looks good! Thanks for your patience with the new software processes :)

I am adding "also closes #22" to the PR description. Feel free to merge

Sets the default to not use the options "gridweights" interface per #9.
Removes the gridweights interface that was broken in #9 altogether
Fixes a new issue identified in #22.
@peterhollender peterhollender merged commit 6b495ee into main Jul 2, 2024
@peterhollender peterhollender deleted the p/fix_kwave_if branch July 2, 2024 14:57
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.

Run simulation always tries to run GPU code test_first notebook throws "unexpected keyword argument 'grid_weights'"

3 participants