Skip to content

Commit e045d7c

Browse files
author
IvanARashid
committed
Changed "accepts_priors" to "supported_priors" for conformance
1 parent 054fa0a commit e045d7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/standardized/OGC_AmsterdamUMC_Bayesian_biexp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class OGC_AmsterdamUMC_Bayesian_biexp(OsipiBase):
2626
required_initial_guess = False
2727
required_initial_guess_optional = True
2828
accepted_dimensions = 1 # Not sure how to define this for the number of accepted dimensions. Perhaps like the thresholds, at least and at most?
29-
accepts_priors = True
3029

3130

3231
# Supported inputs in the standardized class
3332
supported_bounds = True
3433
supported_initial_guess = True
3534
supported_thresholds = True
35+
supported_priors = True
3636

3737
def __init__(self, bvalues=None, thresholds=None, bounds=None, initial_guess=None, fitS0=True, prior_in=None):
3838

tests/IVIMmodels/unit_tests/test_ivim_synthetic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_generated(ivim_algorithm, ivim_data, SNR, rtol, atol, fit_count, rician
2626
Dp = data["Dp"]
2727
fit = OsipiBase(algorithm=ivim_algorithm)
2828
# here is a prior
29-
if use_prior and hasattr(fit, "accepts_priors") and fit.accepts_priors:
29+
if use_prior and hasattr(fit, "supported_priors") and fit.supported_priors:
3030
prior = [rng.normal(D, D/3, 10), rng.normal(f, f/3, 10), rng.normal(Dp, Dp/3, 10), rng.normal(1, 1/3, 10)]
3131
# prior = [np.repeat(D, 10)+np.random.normal(0,D/3,np.shape(np.repeat(D, 10))), np.repeat(f, 10)+np.random.normal(0,f/3,np.shape(np.repeat(D, 10))), np.repeat(Dp, 10)+np.random.normal(0,Dp/3,np.shape(np.repeat(D, 10))),np.repeat(np.ones_like(Dp), 10)+np.random.normal(0,1/3,np.shape(np.repeat(D, 10)))] # D, f, D*
3232
fit.initialize(prior_in=prior)

0 commit comments

Comments
 (0)