Skip to content

Commit

Permalink
fix flake8 and remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Jul 25, 2024
1 parent b409f9d commit 8c1e92d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pyro/compressible/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def dovis(self):
if isinstance(myg, SphericalPolar):
x.v()[:, :] = myg.x2d.v()[:, :]*np.sin(myg.y2d.v()[:, :])
y.v()[:, :] = myg.x2d.v()[:, :]*np.cos(myg.y2d.v()[:, :])
else :
else:
x.v()[:, :] = myg.x2d.v()[:, :]
y.v()[:, :] = myg.y2d.v()[:, :]

Expand All @@ -303,11 +303,6 @@ def dovis(self):
for n, ax in enumerate(axes):
v = fields[n]

# img = ax.imshow(np.transpose(v.v()),
# interpolation="nearest", origin="lower",
# extent=[myg.xmin, myg.xmax, myg.ymin, myg.ymax],
# cmap=self.cm)

img = ax.pcolormesh(x.v(), y.v(), v.v(),
shading="nearest", cmap=self.cm)

Expand Down

0 comments on commit 8c1e92d

Please sign in to comment.