Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more digits to the delta of openDX #89

Merged
merged 11 commits into from
Sep 17, 2021
4 changes: 3 additions & 1 deletion gridData/OpenDX.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ def write(self, stream):
self._write_line(stream, 'origin %f %f %f\n' % tuple(self.origin))
for delta in self.delta:
self._write_line(
stream, ('delta '+self.ndformat(' %f')+'\n') % tuple(delta))
stream, ('delta ' +
IAlibay marked this conversation as resolved.
Show resolved Hide resolved
self.ndformat(' {:.7g}').format(*delta) +
'\n'))

def edges(self):
"""Edges of the grid cells, origin at centre of 0,0,..,0 grid cell.
Expand Down