Changeset b2d9826 in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- Mar 11, 2011 10:14:57 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:
- a3149c5
- Parents:
- aae7a8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rae4ade7 rb2d9826 256 256 return True 257 257 258 def set_data(self, data_list ):258 def set_data(self, data_list=None, theory_list=None): 259 259 """ 260 260 receive a list of data to fit 261 261 """ 262 if data_list is None: 263 data_list = [] 262 264 selected_data_list = [] 263 265 if len(data_list) > MAX_NBR_DATA : … … 1163 1165 if data is None: 1164 1166 theory_data = self.page_finder[id].get_theory_data() 1165 self.parent.add_data_helper( data_list=[theory_data])1167 self.parent.add_data_helper({theory_data.id:theory_data}) 1166 1168 data_id = theory_data.id 1167 1169 else: … … 1249 1251 if data is None: 1250 1252 theory_data = self.page_finder[id].get_theory_data() 1251 self.parent.add_data_helper( data_list=[theory_data])1253 self.parent.add_data_helper({theory_data.id:theory_data}) 1252 1254 data_id = theory_data.id 1253 1255 else:
Note: See TracChangeset
for help on using the changeset viewer.