Changeset b3e8629 in sasview for src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
- Timestamp:
- Nov 9, 2017 8:41:54 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:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
- Property mode changed from 100644 to 100755
r170e95d rb3e8629 20 20 import re 21 21 22 from UI.ResolutionCalculatorPanelUI import Ui_ResolutionCalculatorPanel22 from .UI.ResolutionCalculatorPanelUI import Ui_ResolutionCalculatorPanel 23 23 24 24 _SOURCE_MASS = {'Alpha': 6.64465620E-24, … … 318 318 self, "Choose a spectral distribution file", "", 319 319 "All files (*.*)", 320 None,QtGui.QFileDialog.DontUseNativeDialog)320 QtGui.QFileDialog.DontUseNativeDialog) 321 321 322 322 if datafile is None or str(datafile) == '': … … 328 328 try: 329 329 basename = os.path.basename(datafile) 330 if basename not in self.spectrum_dic.keys():330 if basename not in list(self.spectrum_dic.keys()): 331 331 self.cbCustomSpectrum.addItem(basename) 332 332 … … 604 604 msg = "The numbers must be one or two (separated by ',')" 605 605 logging.info(msg) 606 raise RuntimeError , msg606 raise RuntimeError(msg) 607 607 608 608 return new_numbers_list … … 618 618 new_list = [float(t) for t in string_split] 619 619 except: 620 logging.error(sys.exc_ value)620 logging.error(sys.exc_info()[1]) 621 621 return new_list 622 622 … … 658 658 return out 659 659 except: 660 logging.error(sys.exc_ value)660 logging.error(sys.exc_info()[1]) 661 661 662 662 def _validate_q_input(self, qx, qy):
Note: See TracChangeset
for help on using the changeset viewer.