Changeset 170e95d in sasview for src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
- Timestamp:
- Oct 2, 2017 12:00:47 PM (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:
- fca1f50
- Parents:
- 7d353af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py
rfc4fec8 r170e95d 599 599 except: 600 600 string_split = input_string.split(',') 601 if len(string_split) == 2: 602 str_1 = string_split[0] 603 str_2 = string_split[1] 604 new_numbers_list.append(float(str_1)) 605 new_numbers_list.append(float(str_2)) 606 elif len(string_split) == 1: 607 str_1 = string_split[0] 608 new_numbers_list.append(float(str_1)) 601 if len(string_split) == 1 or len(string_split) == 2: 602 new_numbers_list = [float(item) for item in string_split] 609 603 else: 610 604 msg = "The numbers must be one or two (separated by ',')" … … 735 729 y_val = numpy.arange(qy_max, qy_min, -dy_size) 736 730 731 if len(self.plotter.ax.patches): 732 self.plotter.ax.patches[0].remove() 733 737 734 self.drawLines() 738 735
Note: See TracChangeset
for help on using the changeset viewer.