mirror of
https://github.com/vale981/hopsflow
synced 2025-03-04 16:31:38 -05:00
fix slice
This commit is contained in:
parent
af1ca7465e
commit
0c6ccdf154
1 changed files with 1 additions and 3 deletions
|
@ -116,9 +116,7 @@ class EnsembleValue:
|
|||
def __getitem__(self, index):
|
||||
return EnsembleValue(self._value[index])
|
||||
|
||||
def slice(self, *args):
|
||||
slc = slice(*args)
|
||||
|
||||
def slice(self, slc: Union[np.ndarray, slice]):
|
||||
results = []
|
||||
for N, val, σ in self.aggregate_iterator:
|
||||
results.append((N, val[slc], σ[slc]))
|
||||
|
|
Loading…
Add table
Reference in a new issue