|
@@ -82,14 +82,13 @@ class DataCenter(object):
|
|
|
today = self.day_stamp(time)
|
|
|
path = f'/{today}/{chname}/{quality}/{card_type}/{amount}'
|
|
|
if path not in hfive:
|
|
|
- hfive.create_dataset(path,(5, 86400))
|
|
|
- # hfive[path] = np.zeros((5, 86400))
|
|
|
+ hfive[path] = np.zeros((5, 86400))
|
|
|
|
|
|
diff = time - today
|
|
|
if diff < 0:
|
|
|
print(diff)
|
|
|
- hfive[path][pos][diff] = val
|
|
|
- print(path, pos, diff, val,hfive[path][pos][diff])
|
|
|
+ hfive[path][pos, diff] = val
|
|
|
+ print(path, pos, diff, val, hfive[path][pos, diff])
|
|
|
pass
|
|
|
|
|
|
def day_stamp(self, stamp):
|