Skip to content

Commit 76707f9

Browse files
committed
python cleanups
1 parent 99f8084 commit 76707f9

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

python/magic/radial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def plot(self):
234234
if hasattr(self, 'con_radratio'):
235235
if self.nVarCond == 2:
236236
ax.axvline(self.con_radratio*self.radius[0], color='k',
237-
linestyle='--')
237+
linestyle='--')
238238
fig.tight_layout()
239239

240240
fig = plt.figure()
@@ -298,7 +298,7 @@ def plot(self):
298298
ax.semilogy(x_axis, self.dynVisc, label='dyn. visc')
299299
ax.semilogy(x_axis, self.kinVisc, label='kin. visc')
300300
ax.semilogy(x_axis, self.prandtl, label='Prandtl')
301-
if self.mode not in (1,5):
301+
if self.mode not in (1, 5):
302302
ax.semilogy(x_axis, self.prandtlmag, label='Pm')
303303
ax.semilogy(x_axis, self.ekman, label='Ekman')
304304
ax.set_ylabel('Thermal properties')
@@ -562,7 +562,7 @@ def plot(self):
562562
if hasattr(self, 'con_radratio'):
563563
if self.nVarCond == 2:
564564
ax.axvline(self.con_radratio*self.radius[0], color='k',
565-
linestyle='--')
565+
linestyle='--')
566566

567567

568568
class RadLookUpTable:

python/magic/series.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def plot(self):
578578
fig = plt.figure()
579579
ax = fig.add_subplot(111)
580580
if self.buoPower.max() != 0.:
581-
ax.semilogy(self.time, self.buoPower, label='Thermal buoyancy')
581+
ax.semilogy(self.time, self.buoPower, label='Thermal buoyancy')
582582
if self.buoPower_chem.max() != 0.:
583583
ax.semilogy(self.time, self.buoPower_chem,
584584
label='Chemical buoyancy')
@@ -824,9 +824,9 @@ def __init__(self, data, field):
824824
self.corr_vortz_otc = data[:, 6]
825825
self.corr_hel_otc = data[:, 7]
826826
if data.shape[-1] == 8:
827-
self.geosA= np.zeros_like(self.time)
828-
self.geosZ= np.zeros_like(self.time)
829-
self.geosM= np.zeros_like(self.time)
827+
self.geosA = np.zeros_like(self.time)
828+
self.geosZ = np.zeros_like(self.time)
829+
self.geosM = np.zeros_like(self.time)
830830
self.geosNAP = np.zeros_like(self.time)
831831
elif data.shape[-1] == 12:
832832
self.geosA = data[:, 8]

0 commit comments

Comments
 (0)