Changeset dbb3914 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- Jun 4, 2012 2:27:15 PM (12 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:
- 7c720e9
- Parents:
- 0320d36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r940aca7 rdbb3914 627 627 if self.state_index == 0 and len(self.mypanels) <= 0 \ 628 628 and self.sfile_ext == '.svs': 629 #TODO: Why was the following line left in the code630 # if add_default_pages doesn't exist?631 try:632 self.fit_panel.add_default_pages()633 except:634 print sys.exc_value635 629 self.temp_state = [] 636 630 self.state_index = 0 … … 2018 2012 if data_copy.__class__.__name__ == "Data2D": 2019 2013 if index == None: 2020 index = numpy.ones(len(data_copy.data), ntype=bool)2014 index = numpy.ones(len(data_copy.data), dtype=bool) 2021 2015 if weight != None: 2022 2016 data_copy.err_data = weight … … 2033 2027 # 1 d theory from model_thread is only in the range of index 2034 2028 if index == None: 2035 index = numpy.ones(len(data_copy.y), ntype=bool)2029 index = numpy.ones(len(data_copy.y), dtype=bool) 2036 2030 if weight != None: 2037 2031 data_copy.dy = weight
Note: See TracChangeset
for help on using the changeset viewer.