Skip to content

Commit

Permalink
Revert part of #733 (#736)
Browse files Browse the repository at this point in the history
Restore the suppressions for SymLogNorm and remove the suppression for
mpl.colormaps.get_cmap(), which were broken by astroid 3.2.0, and fixed
in astroid 3.2.1.
  • Loading branch information
yut23 committed May 16, 2024
1 parent 6b3fbe1 commit 87f5e93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pynucastro/networks/rate_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,7 @@ def plot_jacobian(self, rho, T, comp, *,

valid_max = np.abs(jac).max()

# pylint: disable-next=redundant-keyword-arg
norm = SymLogNorm(valid_max/rate_scaling, vmin=-valid_max, vmax=valid_max)

fig, ax = plt.subplots()
Expand Down Expand Up @@ -1714,6 +1715,7 @@ def plot_network_chart(self, rho=None, T=None, comp=None, *,
_ydot = np.asarray(_ydot)
valid_max = np.abs(_ydot[_ydot != 0]).max()

# pylint: disable-next=redundant-keyword-arg
norm = SymLogNorm(valid_max/1.e15, vmin=-valid_max, vmax=valid_max)

# if there are a lot of rates, we split the network chart into
Expand Down Expand Up @@ -1892,7 +1894,7 @@ def gridplot(self, comp=None, color_field="X", rho=None, T=None, **kwargs):

# Get figure, colormap
fig, ax = plt.subplots()
cmap = mpl.colormaps.get_cmap(cmap) # pylint: disable=no-member
cmap = mpl.colormaps.get_cmap(cmap)

# Get nuclei and all 3 numbers
nuclei = self.unique_nuclei
Expand Down

0 comments on commit 87f5e93

Please sign in to comment.