mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Reach: Keep profiles global min and max.
parent
0501ae9bec
commit
662a218e41
|
|
@ -304,6 +304,9 @@ class Reach(SQLSubModel):
|
||||||
lambda p: p.name[0:8] != 'interpol', self._profiles
|
lambda p: p.name[0:8] != 'interpol', self._profiles
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self._global_index = (-1, -1)
|
||||||
|
|
||||||
self._buffers = {}
|
self._buffers = {}
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
|
|
@ -333,9 +336,15 @@ class Reach(SQLSubModel):
|
||||||
return self._profiles[id]
|
return self._profiles[id]
|
||||||
|
|
||||||
def set_global_index(self, indexs):
|
def set_global_index(self, indexs):
|
||||||
|
self._global_index = (indexs[0], indexs[-1])
|
||||||
|
|
||||||
for profile, ind in zip(self._profiles, indexs):
|
for profile, ind in zip(self._profiles, indexs):
|
||||||
profile.global_index = ind
|
profile.global_index = ind
|
||||||
|
|
||||||
|
@property
|
||||||
|
def global_index(self):
|
||||||
|
return self._global_index
|
||||||
|
|
||||||
@timer
|
@timer
|
||||||
def set(self, profile_id, timestamp, key, data):
|
def set(self, profile_id, timestamp, key, data):
|
||||||
self._profiles[profile_id].set(timestamp, key, data)
|
self._profiles[profile_id].set(timestamp, key, data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue