Changeset 6280464 in sasview for src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
- Timestamp:
- Nov 3, 2017 10:58:39 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:
- 412e069e
- Parents:
- 304d082
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
r0849aec r6280464 317 317 if self.cbCustomSpectrum.currentText() == 'Add New': 318 318 datafile = QtWidgets.QFileDialog.getOpenFileName( 319 self, "Choose a spectral distribution file", 320 "All files (*.*)", 321 QtWidgets.QFileDialog.DontUseNativeDialog) 319 self, "Choose a spectral distribution file","", 320 "All files (*.*)", None, 321 QtWidgets.QFileDialog.DontUseNativeDialog)[0] 322 322 323 323 if datafile is None or str(datafile) == '': … … 568 568 : return: image (numpy array) 569 569 """ 570 # This fails in py3 with 571 # [Failure instance: Traceback: <class 'TypeError'>: 'map' object is not subscriptable 572 # INVESTIGATE 573 image = map(func, qx, qy, 570 image = list(map(func, qx, qy, 574 571 qx_min, qx_max, 575 qy_min, qy_max)[0] 572 qy_min, qy_max))[0] 573 576 574 return image 577 575 … … 751 749 self.plotter.plot() 752 750 self.plotter.show() 751 self.plotter.update() 753 752 754 753 def drawLines(self):
Note: See TracChangeset
for help on using the changeset viewer.