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

T115 include bvf #182

Merged
merged 17 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactoring
  • Loading branch information
jnoelke committed Oct 7, 2022
commit bdf753f3cdc06e9fa20c38e9feeecc548e552224
9 changes: 2 additions & 7 deletions simpa_tests/automatic_tests/test_calculation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_oxygenation_calculation(self):
assert abs(oxy_value) < 1e-5, ("oxy value was not 0.0 but " + str(oxy_value))

# RANDOM CASES
for i in range(100):
for _ in range(100):
oxy = np.random.random()
deoxy = np.random.random()
mcg = MolecularCompositionGenerator()
Expand Down Expand Up @@ -102,11 +102,10 @@ def test_bvf_calculation(self):
assert bvf_value == 1.0

# RANDOM CASES
for i in range(100):
for _ in range(100):
oxy = np.random.random()
deoxy = np.random.random()
fat = np.random.random()

sum_oxy_deoxy_fat = oxy + deoxy + fat
mcg = MolecularCompositionGenerator()
mcg.append(MOLECULE_LIBRARY.fat(fat/sum_oxy_deoxy_fat))
Expand Down Expand Up @@ -136,7 +135,3 @@ def test_positive_Gauss(self):
std = np.random.rand(1)[0]
random_value = positive_gauss(mean, std)
assert random_value > float(0), "positive Gauss value outside the desired range and negative"


# test = TestCalculationUtils()
# test.test_bvf_calculation()