From: asl Date: Wed, 23 Nov 2016 05:23:59 +0000 (+0300) Subject: test for interpolz X-Git-Tag: v1.6~2^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be6ce103ff470f397a4c697de47053f4a247afdf;p=modules%2Fhydrosolver.git test for interpolz --- diff --git a/src/salome_hydro/interpolz_gui.py b/src/salome_hydro/interpolz_gui.py index 926029a..c499d90 100644 --- a/src/salome_hydro/interpolz_gui.py +++ b/src/salome_hydro/interpolz_gui.py @@ -163,15 +163,3 @@ class InterpolzDlg( QtGui.QDialog ): def onHelp( self ): pass - - -if __name__=='__main__': - dlg = InterpolzDlg() - dlg.show() - #dlg.CalcCase.setText( 'Case_1' ) - #dlg.OutputPath.setText( '/dn26/HYDRO/interp1.py' ) - #dlg.MEDFile.setText( '/dn26/HYDRO/channel.med' ) - #dlg.onApply() - -#print get_med_groups( "/dn26/HYDRO/channel.med" ) -#print get_hydro_regions( "Case_1" ) diff --git a/src/salome_hydro/test_interpolz_gui.py b/src/salome_hydro/test_interpolz_gui.py new file mode 100644 index 0000000..f92d53e --- /dev/null +++ b/src/salome_hydro/test_interpolz_gui.py @@ -0,0 +1,11 @@ + +from interpolz_gui import InterpolzDlg + +dlg = InterpolzDlg() +dlg.show() +dlg.CalcCase.setText( 'Case_1' ) +dlg.OutputPath.setText( '/dn26/HYDRO/interp1.py' ) +dlg.MEDFile.setText( '/dn26/HYDRO/channel.med' ) + +#print get_med_groups( "/dn26/HYDRO/channel.med" ) +#print get_hydro_regions( "Case_1" )