Skip to content

Commit

Permalink
Remove the deprecation messages in BayesQuasi and BayesStretch
Browse files Browse the repository at this point in the history
Removes these deprecation messages for now because they are confusing.
Currently these algorithms are still being used in the Inelastic Bayes
Fitting interface. At some point we plan to replace the use of the
quasielasticbayes package with quickbayes when it is on conda-forge.
  • Loading branch information
robertapplin committed Sep 23, 2024
1 parent 356e3be commit 07710e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def category(self):

def summary(self):
return (
"This algorithm is deprecated, please use BayesQuasi2 instead. \n"
+ "************************************************************* \n \n"
+ "This algorithm runs the Fortran QLines programs which fits a Delta function of"
"This algorithm runs the Fortran QLines programs which fits a Delta function of"
+ " amplitude 0 and Lorentzians of amplitude A(j) and HWHM W(j) where j=1,2,3. The"
+ " whole function is then convolved with the resolution function."
)
Expand Down Expand Up @@ -159,7 +157,6 @@ def PyExec(self):
from IndirectBayes import CalcErange, GetXYE

setup_prog = Progress(self, start=0.0, end=0.3, nreports=5)
self.log().warning("This algorithm is deprecated, please use BayesQuasi2 instead.")
self.log().information("BayesQuasi input")

erange = [self._e_min, self._e_max]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ def category(self):
return "Workflow\\MIDAS"

def summary(self):
return (
"This algorithm is deprecated, please use BayesStretch2 instead. \n"
+ "*************************************************************** \n \n"
+ "This is a variation of the stretched exponential option of Quasi."
)
return "This is a variation of the stretched exponential option of Quasi."

def PyInit(self):
self.declareProperty(
Expand Down Expand Up @@ -110,7 +106,6 @@ def PyExec(self):
from IndirectCommon import check_x_range, check_analysers_or_e_fixed, get_efixed, get_two_theta_and_q, check_hist_zero

setup_prog = Progress(self, start=0.0, end=0.3, nreports=5)
logger.warning("This algorithm is deprecated, please use BayesStretch2 instead.")
logger.information("BayesStretch input")
logger.information("Sample is %s" % self._sam_name)
logger.information("Resolution is %s" % self._res_name)
Expand Down

0 comments on commit 07710e3

Please sign in to comment.