Skip to content

Commit

Permalink
Special handling for _x_range is None when fitting #77
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-austin committed Jun 21, 2023
1 parent 6941fc1 commit 08a3430
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions muspinsim/simconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ def __init__(self, params={}, use_experimental_x_axis: bool = True):
xname = list(self._x_range.keys())[0]
self._constants.pop(xname, None) # Just in case it was here

if self._x_range[xname] is None:
# Can happen when xname keyword is a single value, and so not assigned
# In this case, we must use the experimental data, as that's the only
# x_range we have
use_experimental_x_axis = True
finfo["evaluate_x_axis"] = False

if use_experimental_x_axis:
# Special cases where loaded data will be a single value, but we
# actually need to load multiple
Expand Down

0 comments on commit 08a3430

Please sign in to comment.