Changeset d603001 in sasview for park_integration
- Timestamp:
- Jan 31, 2011 9:59:01 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 3f6508f
- Parents:
- d0ecb36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/ScipyFitting.py
rc4d6900 rd603001 31 31 self.model = model 32 32 self.param_list = param_list 33 self.iterations = 0 33 34 34 35 def set_model(self, model): … … 48 49 return "No results" 49 50 n = len(self.model.parameterset) 50 51 self.iterations += 1 51 52 result_param = zip(xrange(n), self.model.parameterset) 52 msg = ["P%-3d %s......|.....%s" % (p[0], p[1], p[1].value)\ 53 msg = [" [Iteration #: %s] | P%-3d %s......|.....%s" % \ 54 (self.iterations, p[0], p[1], p[1].value)\ 53 55 for p in result_param if p[1].name in self.param_list] 54 56 msg.append("=== goodness of fit: %s" % (str(self.fitness)))
Note: See TracChangeset
for help on using the changeset viewer.