Skip to content

Commit

Permalink
Update documentation related to bumps returns to ensure consistent be…
Browse files Browse the repository at this point in the history
…havior moving forward
  • Loading branch information
krzywon committed Dec 3, 2024
1 parent e17d2d6 commit 2b3969b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sas/sascalc/fit/BumpsFitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ def fit(self, msg_q=None,
uncertainty_warning = False

for fitting_module in problem.models:
# This makes BumpsFitting compatible with both bumps v0.9 and v1.0
# CRUFT: This makes BumpsFitting compatible with bumps v0.9 and v1.0
if isinstance(fitting_module, SasFitness):
# Bumps v1+ - A Fitness object is returned
# Bumps v1.x+ - A Fitness object is returned
fitness = fitting_module
else:
# Bumps v0 - A module is returned that holds the Fitness object
# Bumps v0.x - A module is returned that holds the Fitness object
fitness = fitting_module.fitness
pars = fitness.fitted_pars + fitness.computed_pars
par_names = fitness.fitted_par_names + fitness.computed_par_names
Expand Down

0 comments on commit 2b3969b

Please sign in to comment.