Skip to content

Commit 3c649a6

Browse files
committed
Remove water plots in vzcheck mode of plates
Those plots were tied to a particular problem and could be obtained via the tseries and rprof commands.
1 parent c834cbd commit 3c649a6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

stagpy/plates.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -762,38 +762,33 @@ def cmd():
762762
else:
763763
nb_plates = []
764764
time = []
765-
ch2o = []
766765
istart, iend = None, None
767766

768767
for step in sdat.walk.filter(fields=['T']):
769768
# could check other fields too
770769
if conf.plates.timeprofile:
771770
time.append(step.timeinfo.loc['t'])
772-
ch2o.append(step.timeinfo.loc[0])
773771
istart = step.isnap if istart is None else istart
774772
iend = step.isnap
775773
limits, nphi, dvphi, vphi_surf = detect_plates_vzcheck(step)
776-
water_profile = np.mean(step.fields['wtr'][0, :, :, 0], axis=0)
777774
limits.sort()
778775
sizeplates = [limits[0] + nphi - limits[-1]]
779776
for lim in range(1, len(limits)):
780777
sizeplates.append(limits[lim] - limits[lim - 1])
781778
lim = len(limits) * [max(dvphi)]
782779
fig = plt.figure()
783-
plt.subplot(221)
780+
plt.subplot(311)
784781
plt.axis([0, nphi,
785782
np.min(vphi_surf) * 1.2, np.max(vphi_surf) * 1.2])
786783
plt.plot(vphi_surf)
787-
plt.subplot(223)
784+
plt.subplot(312)
788785
plt.axis(
789786
[0, nphi,
790787
np.min(dvphi) * 1.2, np.max(dvphi) * 1.2])
791788
plt.plot(dvphi)
792789
plt.scatter(limits, lim, color='red')
793-
plt.subplot(222)
790+
plt.subplot(313)
794791
plt.hist(sizeplates, 10, (0, nphi / 2))
795-
plt.subplot(224)
796-
plt.plot(water_profile)
797792
saveplot(fig, 'plates', step.isnap)
798793

799794
nb_plates.append(len(limits))
@@ -804,9 +799,6 @@ def cmd():
804799
nb_plates[i] + nb_plates[i + 1] +
805800
nb_plates[i + 2]) / 5
806801
figt = plt.figure()
807-
plt.subplot(121)
808802
plt.axis([time[0], time[-1], 0, np.max(nb_plates)])
809803
plt.plot(time, nb_plates)
810-
plt.subplot(122)
811-
plt.plot(time, ch2o)
812804
saveplot(figt, f'plates_{istart}_{iend}')

0 commit comments

Comments
 (0)