mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Fix tests.
parent
6113d9f4cd
commit
8744e1d73e
|
|
@ -156,7 +156,9 @@ class Profile(SQLSubModel):
|
||||||
elif key in ["sl"]:
|
elif key in ["sl"]:
|
||||||
sf = ">" + ''.join(itertools.repeat("f", len_data))
|
sf = ">" + ''.join(itertools.repeat("f", len_data))
|
||||||
values = struct.unpack(sf, data)
|
values = struct.unpack(sf, data)
|
||||||
values = cls._db_load_data_sl_format(values, len_data, timestamps)
|
values = cls._db_load_data_sl_format(
|
||||||
|
values, len_data, timestamps
|
||||||
|
)
|
||||||
|
|
||||||
for timestamp, value in zip(timestamps, values):
|
for timestamp, value in zip(timestamps, values):
|
||||||
new_data.set(timestamp, key, value)
|
new_data.set(timestamp, key, value)
|
||||||
|
|
|
||||||
|
|
@ -618,7 +618,7 @@ class River(Graph):
|
||||||
objs.append(self._D90AdisTS)
|
objs.append(self._D90AdisTS)
|
||||||
objs.append(self._DIFAdisTS)
|
objs.append(self._DIFAdisTS)
|
||||||
|
|
||||||
if self._results is not None:
|
if self.results is not None:
|
||||||
objs.append(self.results)
|
objs.append(self.results)
|
||||||
|
|
||||||
self._save_submodel(execute, objs, data)
|
self._save_submodel(execute, objs, data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue