source: sasview/guiframe/data_state.py @ 9f391af

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 9f391af was 584c4c4, checked in by Gervaise Alina <gervyh@…>, 14 years ago

working on data panel

  • Property mode set to 100644
File size: 1.8 KB
Line 
1################################################################################
2#This software was developed by the University of Tennessee as part of the
3#Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
4#project funded by the US National Science Foundation.
5#
6#See the license text in license.txt
7#
8#copyright 2010, University of Tennessee
9################################################################################
10"""
11"""
12
13class DataState(object):
14    """
15     Store information about data
16    """
17    def __init__(self, data, parent=None):
18        """
19       
20        """
21        self.parent = parent
22        self.data = data
23        self.name = ""
24        self.path = None
25        self.theory_list = []
26        self.state_list = []
27        self.message = ""
28       
29    def set_name(self, name):
30        self.name = name
31    def get_name(self):
32        return self.name
33    def set_data(self, data):
34        self.data = data
35       
36    def get_data(self):
37        return self.data
38   
39    def set_path(self, path):
40        """
41        Set the path of the loaded data
42        """
43        self.path = path
44       
45    def get_path(self):
46        """
47        return the path of the loaded data
48        """
49        return self.path
50   
51    def set_theory(self, theory):
52        """
53        """
54        self.theory_list.append(theory)
55       
56    def get_theory(self):
57        return self.theory_list
58   
59    def set_state(self, state):
60        """
61        """
62        #self.theory_list.append(state)
63        return
64       
65    def get_state(self):
66        return self.state_list
67   
68    def get_message(self):
69        """
70        return message
71        """
72        return self.message
73   
74 
Note: See TracBrowser for help on using the repository browser.