Changeset a3fc33d in sasview for park_integration
- Timestamp:
- May 25, 2011 5:36:47 PM (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:
- db427ec
- Parents:
- 8433093
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/ScipyFitting.py
re0e22f2c ra3fc33d 14 14 from sans.fit.AbstractFitEngine import SansAssembly 15 15 from sans.fit.AbstractFitEngine import FitAbort 16 16 IS_MAC = True 17 if sys.platform.count("win32") > 0: 18 IS_MAC = False 19 17 20 class fitresult(object): 18 21 """ … … 30 33 self.stderr = None 31 34 self.parameters = None 35 self.is_mac = IS_MAC 32 36 self.model = model 33 37 self.param_list = param_list … … 52 56 self.iterations += 1 53 57 result_param = zip(xrange(n), self.model.parameterset) 54 msg1 = ["[Iteration #: %s ]" % self.iterations] 55 msg2 = ["P%-3d %s......|.....%s" % \ 56 (p[0], p[1], p[1].value)\ 57 for p in result_param if p[1].name in self.param_list] 58 59 msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 60 msg = msg1 + msg3 + msg2 61 return "\n".join(msg) 58 if not self.is_mac: 59 msg1 = ["[Iteration #: %s ]" % self.iterations] 60 msg2 = ["P%-3d %s......|.....%s" % \ 61 (p[0], p[1], p[1].value)\ 62 for p in result_param if p[1].name in self.param_list] 63 64 msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 65 msg = msg1 + msg3 + msg2 66 msg = "\n".join(msg) 67 else: 68 msg = '' 69 return msg 62 70 63 71 def print_summary(self):
Note: See TracChangeset
for help on using the changeset viewer.