-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed folder due to conflicts, started work on
algorithm conformance
- Loading branch information
1 parent
f13fc11
commit aae8cc0
Showing
23 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import numpy as np | ||
from src.wrappers.OsipiBase import OsipiBase | ||
from src.original.ETP_SRI.LinearFitting import LinearFit | ||
|
||
|
||
class ETP_SRI_LinearFitting(OsipiBase): | ||
"""WIP | ||
Implementation and execution of the submitted algorithm | ||
""" | ||
|
||
def ivim_fit(self, signals, b_bvalues): | ||
ETP_object = LinearFit(self.thresholds[0]) | ||
|
||
f, D, Dstar = ETP_object.ivim_fit(b_values, signals) | ||
|
||
|
||
|
||
return (f, Dstar, D) | ||
|
||
|
||
|
||
# Simple test code... | ||
b_values = np.array([0, 200, 500, 800]) | ||
|
||
def ivim_model(b, S0=1, f=0.1, Dstar=0.03, D=0.001): | ||
return S0*(f*np.exp(-b*Dstar) + (1-f)*np.exp(-b*D)) | ||
|
||
signals = ivim_model(b_values) | ||
|
||
model = ETP_SRI_LinearFitting() | ||
model.thresholds = [200] | ||
results = model.ivim_fit(b_values, signals) |
File renamed without changes.
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
Empty file.
Binary file not shown.
Binary file not shown.
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
Empty file.
Binary file not shown.
File renamed without changes.
Empty file.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
utils/data_simulation/ivim_simulation.py → utilities/data_simulation/ivim_simulation.py
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
File renamed without changes.
File renamed without changes.
File renamed without changes.