Skip to content

Commit

Permalink
[field] Fix Field.shape
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Aug 10, 2024
1 parent f25f90f commit bfeaa1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/field/_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def shape(self) -> Shape:
"""
if self.is_staggered and self.is_grid:
return batch(self._geometry) & self.resolution & non_dual(self._values).without(self.resolution) & self._geometry.shape['vector']
return self._geometry.shape.non_channel & self._values
return self._geometry.shape.without('vector') & self._values

@property
def resolution(self):
Expand Down

0 comments on commit bfeaa1d

Please sign in to comment.