@@ -38,6 +38,12 class HDFReader(Reader, ProcessingUnit): | |||
|
38 | 38 | extras : dict, optional |
|
39 | 39 | Dictionary with extra metadata to be be added to `dataOut` |
|
40 | 40 | |
|
41 | Attention: Be carefull, add attribute utcoffset, in the last part of reader in order to work in Local Time without time problems. | |
|
42 | ||
|
43 | ----------- | |
|
44 | utcoffset='-18000' | |
|
45 | ||
|
46 | ||
|
41 | 47 | Examples |
|
42 | 48 | -------- |
|
43 | 49 | |
@@ -65,6 +71,7 class HDFReader(Reader, ProcessingUnit): | |||
|
65 | 71 | 'timeZone': 300 |
|
66 | 72 | } |
|
67 | 73 | |
|
74 | ||
|
68 | 75 | reader = project.addReadUnit( |
|
69 | 76 | name='HDFReader', |
|
70 | 77 | path='/path/to/files', |
@@ -72,16 +79,11 class HDFReader(Reader, ProcessingUnit): | |||
|
72 | 79 | endDate='2019/01/31', |
|
73 | 80 | startTime='00:00:00', |
|
74 | 81 | endTime='23:59:59', |
|
82 | utcoffset='-18000' | |
|
75 | 83 | # description=json.dumps(desc), |
|
76 | 84 | # extras=json.dumps(extras), |
|
77 | 85 | ) |
|
78 | 86 | |
|
79 | ATTENTION: | |
|
80 | Add attribute: | |
|
81 | ||
|
82 | utcoffset='-18000' | |
|
83 | in the last part of reader in order to work in Local Time | |
|
84 | ||
|
85 | 87 | """ |
|
86 | 88 | |
|
87 | 89 | __attrs__ = ['path', 'startDate', 'endDate', 'startTime', 'endTime', 'description', 'extras'] |
General Comments 0
You need to be logged in to leave comments.
Login now