We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0290d commit b665ab0Copy full SHA for b665ab0
deepfield/field/rock.py
@@ -44,6 +44,8 @@ def __init__(self, *args, **kwargs):
44
@apply_to_each_input
45
def _to_spatial(self, attr: str):
46
"""Spatial order 'F' transformations."""
47
+ if getattr(self, attr) is None:
48
+ return None
49
dimens = self.field.grid.dimens.values.reshape(-1)
50
self.pad_na(attr=attr)
51
return self.reshape(attr=attr, newshape=dimens, order='F', inplace=True)
0 commit comments