Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/subscript/check_swatinit/check_swatinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,21 @@ def main() -> None:

if args.volplot or args.volplotfile:
plotter.wvol_waterfall(qc_vols)
if args.volplot:
pyplot.show()
if args.volplotfile:
print(f"Dumping volume plot to {args.volplotfile}")
pyplot.savefig(args.volplotfile)
if args.volplot:
pyplot.show()

if (args.plotfile or args.plot) and args.eqlnum not in qc_frame["EQLNUM"].values:
sys.exit(f"Error: EQLNUM {args.eqlnum} does not exist in grid. No plotting.")
if args.plot or args.plotfile:
plotter.plot_qc_panels(qc_frame[qc_frame["EQLNUM"] == args.eqlnum])
if args.plot:
pyplot.show()
if args.plotfile:
print(f"Dumping plot to {args.plotfile}")
pyplot.savefig(args.plotfile)
if args.plot:
pyplot.show()


def check_applicability(eclfiles: res2df.ResdataFiles) -> None:
Expand Down