msgBox.setText( "Boundary condition file does not exist" )
msgBox.exec_()
return
- bnd = True
- liq_bnd = False
+ option = "--bnd"
if self.liqbcd:
- bnd = False
- liq_bnd = True
- from postel.plot_actions import plot_mesh2d
- from data_manip.extraction.telemac_file import TelemacFile
-
- res = TelemacFile(medFile, bnd_file=bcdFile)
- plot_mesh2d(res, display_bnd=bnd, display_liq_bnd=liq_bnd)
- res.close()
+ option = "--liq-bnd"
+ cmd = ["plot.py", "mesh2d", medFile, "-b", bcdFile, option]
+ try:
+ proc = subprocess.Popen(cmd)
+ except OSError:
+ print("invalid command")
+ QMessageBox.critical(self, "command error", "%s is not found" % cmd[0])
self.accept()
def on_reject(self):