-
Notifications
You must be signed in to change notification settings - Fork 17
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
T115 include bvf #182
T115 include bvf #182
Conversation
- new Tags.DATA_FIELD_BLOOD_VOLUME_FRACTION - this tag is added to TissueProperties - new function calculate_bvf - calculate_bvf used in MolecularComposition
# Conflicts: # simpa/utils/tissue_properties.py # simpa_tests/test_utils/tissue_composition_tests.py
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.
Please check how to save bvf in hdf5. It seems not to appear in the output.
simpa_tests/automatic_tests/tissue_library/test_core_assumptions.py
Outdated
Show resolved
Hide resolved
@@ -6,7 +6,9 @@ | |||
from simpa.utils import TISSUE_LIBRARY | |||
from simpa.utils.libraries.tissue_library import TissueLibrary |
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.
remove from simpa.utils.libraries.tissue_library import TissueLibrary
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 think without further changes in the code we cannot just remove the import
- this is achieved by adding it to the wavelength independend properties
- Use a helper function to extract hemoglobin fraction which is used for both sO2 and bvf - Remove unnecessary if conditions by using 0.0 as default - improve type hinting
Code and tests