mirror of
https://github.com/vale981/hopsflow
synced 2025-03-04 16:31:38 -05:00
fix for_bath
This commit is contained in:
parent
0c6ccdf154
commit
eebfafa58a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class EnsembleValue:
|
|||
return len(self._value)
|
||||
|
||||
def for_bath(self, bath: int):
|
||||
if self.num_baths == 1 and len(self.value.shape) == 1:
|
||||
if self.num_baths == 1 and len(self.value.shape) in [0, 1]:
|
||||
return self
|
||||
|
||||
return EnsembleValue([(N, val[bath], σ[bath]) for N, val, σ in self._value])
|
||||
|
|
Loading…
Add table
Reference in a new issue