Skip to content

Commit

Permalink
Merge pull request #210 from missing-user/patch-1
Browse files Browse the repository at this point in the history
py_spec scalar handling
  • Loading branch information
smiet authored Nov 23, 2024
2 parents 51478ce + e406819 commit 4f9c169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/pythontools/py_spec/output/_plot_pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def plot_pressure(self, normalize=True, ax=None, **kwargs):
import matplotlib.pyplot as plt

pressure = np.atleast_1d(self.input.physics.pressure) * self.input.physics.pscale
tflux = self.output.tflux[: len(pressure)]
tflux = np.atleast_1d(self.output.tflux)[: len(pressure)]
if not normalize:
# remove mu_0
pressure /= 4 * np.pi * 1.0e-7
Expand Down

0 comments on commit 4f9c169

Please sign in to comment.