- Timestamp:
- May 25, 2009 4:42:21 PM (16 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:
- fd4b6f8
- Parents:
- 588f84f
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r25ccf33 r8068b52 796 796 self._mgr.Update() 797 797 798 def choose_file(self ):798 def choose_file(self, path=None): 799 799 """ 800 800 Functionality that belongs elsewhere … … 803 803 #TODO: clean this up 804 804 from data_loader import choose_data_file 805 path = choose_data_file(self, self._default_save_location) 805 806 # Choose a file path 807 if path==None: 808 path = choose_data_file(self, self._default_save_location) 809 806 810 if not path==None: 807 811 try: -
guiframe/local_perspectives/plotting/Plotter1D.py
r1debb29 r8068b52 289 289 290 290 if selected_plot.__class__.__name__=="Data1D": 291 291 # Make sure that we can pass a basic Data1D 292 dxl = None 293 dxw = None 294 if hasattr(selected_plot, "dxl"): 295 dxl = selected_plot.dxl 296 if hasattr(selected_plot, "dxw"): 297 dxw = selected_plot.dxw 292 298 new_plot = dataFitting.Data1D( x=selected_plot.x, 293 299 y= selected_plot.y, 294 300 dx=selected_plot.dx, 295 301 dy=dy, 296 dxl= selected_plot.dxl,297 dxw= selected_plot.dxw)302 dxl=dxl, 303 dxw=dxw) 298 304 299 305 else: … … 365 371 ## Create a new plottable data1D 366 372 if selected_plot.__class__.__name__=="Data1D": 373 # Make sure that we can pass a basic Data1D 374 dxl = None 375 dxw = None 376 if hasattr(selected_plot, "dxl"): 377 dxl = selected_plot.dxl 378 if hasattr(selected_plot, "dxw"): 379 dxw = selected_plot.dxw 367 380 new_plot = dataFitting.Data1D( x=selected_plot.x, 368 381 y= selected_plot.y, 369 382 dx=selected_plot.dx, 370 383 dy=dy, 371 dxl= selected_plot.dxl,372 dxw= selected_plot.dxw)384 dxl=dxl, 385 dxw=dxw) 373 386 else: 374 387 ## Create a new plottable Theory1D
Note: See TracChangeset
for help on using the changeset viewer.