Commit 25fdb631 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent efd0e7f4
Pipeline #60988 passed with stages
in 8 minutes and 55 seconds
...@@ -22,7 +22,6 @@ from ..multi_field import MultiField ...@@ -22,7 +22,6 @@ from ..multi_field import MultiField
from .endomorphic_operator import EndomorphicOperator from .endomorphic_operator import EndomorphicOperator
class BlockDiagonalOperator(EndomorphicOperator): class BlockDiagonalOperator(EndomorphicOperator):
""" """
Parameters Parameters
...@@ -51,9 +50,11 @@ class BlockDiagonalOperator(EndomorphicOperator): ...@@ -51,9 +50,11 @@ class BlockDiagonalOperator(EndomorphicOperator):
def draw_sample(self, from_inverse=False, dtype=np.float64): def draw_sample(self, from_inverse=False, dtype=np.float64):
from ..sugar import from_random from ..sugar import from_random
val = tuple(op.draw_sample(from_inverse, dtype) val = tuple(
if op is not None else from_random('normal', self._domain[key], dtype=dtype) op.draw_sample(from_inverse, dtype)
for op, key in zip(self._ops, self._domain.keys())) if op is not None
else from_random('normal', self._domain[key], dtype=dtype)
for op, key in zip(self._ops, self._domain.keys()))
return MultiField(self._domain, val) return MultiField(self._domain, val)
def _combine_chain(self, op): def _combine_chain(self, op):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment