Changeset 3f89c0e in sasview
- Timestamp:
- Mar 26, 2019 3:32:31 PM (6 years ago)
- Branches:
- ticket-1094-headless
- Children:
- 1d56359
- Parents:
- 7ad12e9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/fitstate.py
r7ad12e9f r3f89c0e 144 144 used = [] 145 145 for model in self.simfit.model_list: 146 matched = 0 146 147 for fit in self.fits: 147 148 #print(model['name'], fit.data_id, model_name(fit), model['model_name']) … … 152 153 fit.constraints = constraints.setdefault(fit.fit_page, []) 153 154 used.append(fit) 154 break 155 else: 155 matched += 1 156 if matched > 1: 157 raise ValueError("more than one model matches %s" 158 % model['fit_page_source']) 159 elif matched == 0: 156 160 raise ValueError("could not find model %s in file" 157 161 % model['fit_page_source'])
Note: See TracChangeset
for help on using the changeset viewer.