##// END OF EJS Templates
Actualización del metodo copy de la clase data
Miguel Valdez -
r42:89b58cf99bf0
parent child
Show More
@@ -1,71 +1,71
1 1 '''
2 2 Created on Feb 7, 2012
3 3
4 4 @author $Author$
5 5 @version $Id$
6 6 '''
7 7 import copy
8 8 from JROHeader import RadarControllerHeader, ProcessingHeader, SystemHeader, BasicHeader
9 9
10 10 class Data:
11 11 '''
12 12 classdocs
13 13 '''
14 14 __type = None
15 15
16 16 def __init__(self):
17 17 '''
18 18 Constructor
19 19 '''
20 20 raise ValueError, "This class has not been implemented"
21 21
22 def copy(self, obj=None):
22 def copy(self, objIn=None):
23 23
24 if obj == None:
24 if objIn == None:
25 25 return copy.deepcopy(self)
26 26
27 for key in self.__dict__.keys():
28 obj.__dict__[key] = self.__dict__[key]
27 for key in objIn.__dict__.keys():
28 self.__dict__[key] = objIn.__dict__[key]
29 29
30 30 def deepcopy(self):
31 31
32 32 return copy.deepcopy(self)
33 33
34 34 class Noise(Data):
35 35 '''
36 36 classdocs
37 37 '''
38 38
39 39 def __init__(self):
40 40 '''
41 41 Constructor
42 42 '''
43 43 pass
44 44
45 45 class JROData(Data):
46 46 '''
47 47 classdocs
48 48 '''
49 49 m_RadarControllerHeader = RadarControllerHeader()
50 50 m_ProcessingHeader = ProcessingHeader()
51 51 m_SystemHeader = SystemHeader()
52 52 m_BasicHeader = BasicHeader()
53 53 m_Noise = Noise()
54 54
55 55 data = None
56 56 dataType = None
57 57
58 58 nProfiles = None
59 59 nHeights = None
60 60 nChannels = None
61 61
62 62 heights = None
63 63
64 64 flagNoData = False
65 65 flagResetProcessing = False
66 66
67 67 def __init__(self):
68 68 '''
69 69 Constructor
70 70 '''
71 71 raise ValueError, "This class has not been implemented" No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now