-
Notifications
You must be signed in to change notification settings - Fork 32
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
FFT + Time Reversal Reconstruction #475
base: master
Are you sure you want to change the base?
Conversation
- added FFT reconstruction - added reconstruction examples
Hey @faberno, just pining you on this. Is this something you would like to continue to work on? Best, |
Hey @waltsims, sorry for the inactivity, next week I will have time to continue it :) Best, |
No rush, just checking in. |
- added notebooks + documentation
Hey @waltsims, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this PML cropping section to the run_simulation function, to have access to the simulation_options. Would you prefer it in the parse_executable_output? (At least, thats where you added an outcommented version of this.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also right now this change breaks the executor test, I will update it when the code is final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great if you could make this a private subfunction _remove_pml(...)
and place it in parse_executable output
for now. That will make future refactoring easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! I just have the problem, that if _remove_pml(...)
is inside parse_executable_output
I can't test anymore if the pml is removed on the mock_dict (see: test_sensor_data_cropping_with_pml_outside), because the whole parse_executable_output
is patched.
If I create a second private subfunction in parse_executable_output
called _load_sensor_data
, is there a way to only patch this instead? I didn't find a way to do this.
Or do you see another workaround? :D
Hey @faberno Thanks for this work! Before I review your changes, can you make sure your PR passed the CI? It looks like there are some failing tests. Also please be sure to install precommit to ensure your PR is properly formatted. |
- adapt executor tests - removed unused voxel_plot in 3D_FFT example
Hey @faberno, Thanks again for the PR. I'll have a look at this this weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great examples. Minor comment. Do you still want to add further tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great if you could make this a private subfunction _remove_pml(...)
and place it in parse_executable output
for now. That will make future refactoring easier.
Please resolve the conflict in the tests and we can merge this in unless you would like to make further changes. |
Are there any more tests you would like to have? Otherwise it's fine for me |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #475 +/- ##
==========================================
+ Coverage 72.83% 73.12% +0.28%
==========================================
Files 46 46
Lines 6789 6816 +27
Branches 1305 1309 +4
==========================================
+ Hits 4945 4984 +39
+ Misses 1287 1278 -9
+ Partials 557 554 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hey @waltsims, I added a last test for the coverage. I also made the _remove_pml(...) function a normal member function of Executor (instead of a subfunction in parse_executable output), to still be able to test the cropping. If thats alright for you, everything should be ready :) |
This PR implements the FFT reconstructions (kspaceLineRecon, kspacePlaneRecon) and fixes Time Reversal.
Added examples:
This PR is just a draft and not ready for review yet!
TODO: