Changeset aa36f96 in sasview for park_integration/Loader.py
- Timestamp:
- Jun 3, 2010 2:50:08 PM (14 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:
- d84a90c
- Parents:
- 6126c25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/Loader.py
r4408fb0 raa36f96 4 4 class Load: 5 5 """ 6 6 This class is loading values from given file or value giving by the user 7 7 """ 8 8 … … 17 17 def set_filename(self,path=None): 18 18 """ 19 Store path into a variable.If the user doesn't give a path as a parameter a pop-up 20 window appears to select the file. 21 @param path: the path given by the user 19 Store path into a variable.If the user doesn't give a path as a parameter a pop-up 20 window appears to select the file. 21 22 :param path: the path given by the user 23 22 24 """ 23 25 self.filename = path … … 29 31 30 32 def set_values(self): 31 """ Store the values loaded from file in local variables 33 """ Store the values loaded from file in local variables""" 32 34 if not self.filename == None: 33 35 input_f = open(self.filename,'r') … … 61 63 62 64 def get_values(self): 63 """ Return x, y, dx, dy 65 """ Return x, y, dx, dy""" 64 66 return self.x,self.y,self.dx,self.dy 65 67 66 68 def load_data(self,data): 67 """ Return plottable 69 """ Return plottable""" 68 70 #load data 69 71 data.x = self.x
Note: See TracChangeset
for help on using the changeset viewer.