Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gridData/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def centers(self):
"""Returns the coordinates of the centers of all grid cells as an
iterator."""
for idx in numpy.ndindex(self.grid.shape):
yield self.delta * numpy.array(idx) + self.origin
yield self.delta * numpy.array(idx) + self.origin + (self.delta * 0.5)

def check_compatible(self, other):
"""Check if *other* can be used in an arithmetic operation.
Expand Down