Changeset 1ec979d in sasview
- Timestamp:
- Oct 14, 2011 3:49:22 PM (13 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:
- 466dae7
- Parents:
- c27a111
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r71e5c11 r1ec979d 1465 1465 """ 1466 1466 try: 1467 numpy.nan_to_num(y) 1468 1467 1469 new_plot = Data1D(x=x, y=y) 1468 1470 new_plot.is_data = False … … 1551 1553 that can be plot. 1552 1554 """ 1555 numpy.nan_to_num(image) 1553 1556 new_plot= Data2D(image=image, err_image=data.err_data) 1554 1557 new_plot.name = model.name -
sansguiframe/src/sans/guiframe/data_processor.py
rc27a111 r1ec979d 5 5 import numpy 6 6 import math 7 import time 7 8 import re 8 9 import os … … 745 746 wx.PostEvent(self.parent.parent, StatusEvent(status=msg, 746 747 info="error")) 748 time.sleep(0.5) 747 749 continue 748 750 else: … … 767 769 wx.PostEvent(self.parent.parent, 768 770 StatusEvent(status=msg, info="error")) 771 time.sleep(0.5) 769 772 continue 770 773 … … 785 788 wx.PostEvent(self.parent.parent, 786 789 StatusEvent(status=msg, 787 info="error")) 790 info="error")) 791 time.sleep(0.5) 788 792 continue 789 793 """ … … 795 799 wx.PostEvent(self.parent.parent, 796 800 NewPlotEvent(plot=new_plot, 797 group_id=str(group_id),798 801 group_id=str(new_plot.group_id), 802 title=title)) 799 803 msg = "Plotting the View Results completed!" 800 804 wx.PostEvent( self.parent.parent, … … 808 812 wx.PostEvent(self.parent.parent, 809 813 StatusEvent(status=msg, info="error")) 814 time.sleep(0.5) 810 815 continue 811 816 … … 863 868 title = "%s vs %s" % (self.y_axis_title.GetValue(), 864 869 self.x_axis_title.GetValue()) 865 new_plot.xaxis(self.x_axis_title.GetValue(), self.x_axis_unit.GetValue()) 866 new_plot.yaxis(self.y_axis_title.GetValue(), self.y_axis_unit.GetValue()) 870 new_plot.xaxis(self.x_axis_title.GetValue(), 871 self.x_axis_unit.GetValue()) 872 new_plot.yaxis(self.y_axis_title.GetValue(), 873 self.y_axis_unit.GetValue()) 867 874 try: 868 875 title = self.notebook.GetPageText(pos) … … 871 878 new_plot.ytransform = "y" 872 879 wx.PostEvent(self.parent.parent, 873 880 NewPlotEvent(plot=new_plot, 874 881 group_id=str(new_plot.group_id), title =title)) 875 882 msg = "Plotting completed!"
Note: See TracChangeset
for help on using the changeset viewer.