Skip to content

Commit

Permalink
Merge pull request #108 from neutrinoceros/hotfix_polar_coordinates
Browse files Browse the repository at this point in the history
BUG: fix an issue where azimuthal coordinates in polar geometry was incorrectly shifted
  • Loading branch information
neutrinoceros committed Apr 20, 2022
2 parents 5bb3977 + 34607ac commit 53b3ae4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = yt_idefix
version = 0.11.6
version = 0.11.7
description = An extension module for yt, adding a frontend for Idefix
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
2 changes: 1 addition & 1 deletion yt_idefix/__init__.py
Expand Up @@ -2,4 +2,4 @@
# immediately after `import yt.extensions.idefix`
from yt_idefix.api import *

__version__ = "0.11.6"
__version__ = "0.11.7"
4 changes: 1 addition & 3 deletions yt_idefix/_io/vtk_io.py
Expand Up @@ -199,9 +199,7 @@ def read_grid_coordinates(
data_type = next(fh).decode().split()[0] # CELL_DATA (NX-1)(NY-1)(NZ-1)
next(fh)

# manually changing phase origin (theta) to match
# results from Idefix's pytools
coords = [r, theta + np.pi, z]
coords = [r, theta, z]
else:
assert geometry == "spherical"
# Reconstruct the spherical coordinate system
Expand Down

0 comments on commit 53b3ae4

Please sign in to comment.