From be6ce103ff470f397a4c697de47053f4a247afdf Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 23 Nov 2016 08:23:59 +0300 Subject: [PATCH] test for interpolz --- src/salome_hydro/interpolz_gui.py | 12 ------------ src/salome_hydro/test_interpolz_gui.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 src/salome_hydro/test_interpolz_gui.py 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" ) -- 2.39.2