Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed May 2, 2023
1 parent a18173f commit 48826a4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions yt/geometry/coordinates/spec_cube_coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,6 @@ def __init__(self, ds, ordering=None):
)
super().__init__(ds, ordering)

# TODO(4179): migrate this
names = {}
if ds.lon_name != "X" or ds.lat_name != "Y":
names["x"] = r"Image\ x"
names["y"] = r"Image\ y"
names["z"] = ds.spec_name

self._image_axis_name = ian = {} # deprecated
for ax in "xyz":
axi = self.axis_id[ax]
xax = self.axis_name[self.x_axis[ax]]
yax = self.axis_name[self.y_axis[ax]]
ian[axi] = ian[ax] = ian[ax.upper()] = (
names.get(xax, xax),
names.get(yax, yax),
)

def _spec_axis(ax, x, y):
p = (x, y)[ax]
return [self.ds.pixel2spec(pp).v for pp in p]
Expand Down

0 comments on commit 48826a4

Please sign in to comment.