Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradient realtime_shim orientation and nan problems (#323)
* Add function to determine the slice orientation * Correct docstring * Move imports * Flip axis depending on anatomical orientation * Avoid division by 0 when input pressure data is flat * Add tests for coronal and sagital orientations * Add test for ambiguous slice orientation * Add a method to use the ImageOrientationText tag in the json as default sinc eit is more reliable * Update test/cli/test_cli_realtime_shim.py * Add comments to describe tests * Use defined orientations instead of filenames and change import order * Add comments about nans and change import order
- Loading branch information
Showing
4 changed files
with
187 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters