File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,11 @@ def fill_consistent(
332332 data = child ._parent [name ]
333333 if not data .has_value :
334334 maybe_set_random_value (data , 0.0 , skip_complex )
335- if not data .has_value or len (data .shape ) == 0 or any (s == 0 for s in data .shape ):
335+ if (
336+ not data .has_value
337+ or len (data .shape ) == 0
338+ or any (s == 0 for s in data .shape )
339+ ):
336340 error_skip = True
337341 except (KeyError , AttributeError , RuntimeError , ValueError ):
338342 error_skip = True
@@ -342,7 +346,11 @@ def fill_consistent(
342346 data = child ._parent [name ]
343347 if not data .has_value :
344348 maybe_set_random_value (data , 0.0 , skip_complex )
345- if not data .has_value or len (data .shape ) == 0 or any (s == 0 for s in data .shape ):
349+ if (
350+ not data .has_value
351+ or len (data .shape ) == 0
352+ or any (s == 0 for s in data .shape )
353+ ):
346354 error_skip = True
347355 except (KeyError , AttributeError , RuntimeError , ValueError ):
348356 error_skip = True
You can’t perform that action at this time.
0 commit comments