Changeset 2b4c8ca in sasview
- Timestamp:
- Jan 19, 2012 11:48:43 AM (13 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:
- 4310dbb
- Parents:
- 33477fd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/model_editor.py
rf505470 r2b4c8ca 761 761 762 762 def _get_name(self, name1, name2): 763 name = self._get_upper_name(name1) 763 p1_name = self._get_upper_name(name1) 764 if not p1_name: 765 p1_name = name1 766 name = p1_name 764 767 name += "+" 765 name += self._get_upper_name(name2) 768 p2_name = self._get_upper_name(name2) 769 if not p2_name: 770 p2_name = name2 771 name += p2_name 766 772 return name 767 773 -
fittingview/src/sans/perspectives/fitting/plugin_models/sum_Ap1_1_Ap2.py
re9bd127 r2b4c8ca 132 132 """ 133 133 name = "A*" 134 name += self._get_upper_name(name1) 134 p1_name = self._get_upper_name(name1) 135 if not p1_name: 136 p1_name = name1 137 name += p1_name 135 138 name += "+(1-A)*" 136 name += self._get_upper_name(name2) 139 p2_name = self._get_upper_name(name2) 140 if not p2_name: 141 p2_name = name2 142 name += p2_name 137 143 return name 138 144 -
fittingview/src/sans/perspectives/fitting/plugin_models/sum_p1_p2.py
rc067d12 r2b4c8ca 130 130 Get combined name from two model names 131 131 """ 132 name = self._get_upper_name(name1) 132 p1_name = self._get_upper_name(name1) 133 if not p1_name: 134 p1_name = name1 135 name = p1_name 133 136 name += "+" 134 name += self._get_upper_name(name2) 137 p2_name = self._get_upper_name(name2) 138 if not p2_name: 139 p2_name = name2 140 name += p2_name 135 141 return name 136 142
Note: See TracChangeset
for help on using the changeset viewer.