Changeset b0b09b9 in sasview for src/sas/qtgui/Calculators/GenericScatteringCalculator.py
- Timestamp:
- Oct 26, 2017 3:13:05 AM (7 years ago)
- Branches:
- 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
- Children:
- 895e7359
- Parents:
- def64a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/GenericScatteringCalculator.py
- Property mode changed from 100644 to 100755
rfef38e8 rb0b09b9 22 22 23 23 # Local UI 24 from UI.GenericScatteringCalculator import Ui_GenericScatteringCalculator24 from .UI.GenericScatteringCalculator import Ui_GenericScatteringCalculator 25 25 26 26 _Q1D_MIN = 0.001 … … 119 119 TODO Temporary solution to display information about option 'Ellipsoid' 120 120 """ 121 print "The option Ellipsoid has not been implemented yet."121 print("The option Ellipsoid has not been implemented yet.") 122 122 self.communicator.statusBarUpdateSignal.emit( 123 123 "The option Ellipsoid has not been implemented yet.") … … 165 165 self.reader.queue() 166 166 except (RuntimeError, IOError): 167 log_msg = "Generic SAS Calculator: %s" % sys.exc_ value167 log_msg = "Generic SAS Calculator: %s" % sys.exc_info()[1] 168 168 logging.info(log_msg) 169 169 raise … … 556 556 d.addCallback(self.plot_1_2d) 557 557 except: 558 log_msg = "{}. stop".format(sys.exc_ value)558 log_msg = "{}. stop".format(sys.exc_info()[1]) 559 559 logging.info(log_msg) 560 560 return … … 644 644 self.graph_num += 1 645 645 # TODO 646 print 'TRANSFER OF DATA TO MAIN PANEL TO BE IMPLEMENTED'646 print('TRANSFER OF DATA TO MAIN PANEL TO BE IMPLEMENTED') 647 647 return plot1D 648 648 else: … … 662 662 self.graph_num += 1 663 663 # TODO 664 print 'TRANSFER OF DATA TO MAIN PANEL TO BE IMPLEMENTED'664 print('TRANSFER OF DATA TO MAIN PANEL TO BE IMPLEMENTED') 665 665 return plot2D 666 666 … … 744 744 # II. Plot selective points in color 745 745 other_color = numpy.ones(len(pix_symbol), dtype='bool') 746 for key in color_dic.keys():746 for key in list(color_dic.keys()): 747 747 chosen_color = pix_symbol == key 748 748 if numpy.any(chosen_color): … … 758 758 # Get atom names not in the list 759 759 a_names = [symb for symb in pix_symbol \ 760 if symb not in color_dic.keys()]760 if symb not in list(color_dic.keys())] 761 761 a_name = a_names[0] 762 762 for name in a_names:
Note: See TracChangeset
for help on using the changeset viewer.