1 # -*- coding: utf-8 -*-
4 HYDRO_SAMPLES = os.path.join( os.environ["HYDRO_ROOT_DIR"], "bin/salome/test")
12 from PyQt5.QtCore import *
13 from PyQt5.QtGui import *
15 hydro_doc = HYDROData_Document.Document()
17 hydro_doc.SetLocalCS( 430000, 6.35e+06 )
19 Cloud_inexistant = hydro_doc.CreateObject( KIND_BATHYMETRY )
20 Cloud_inexistant.SetName( "Cloud_inexistant" )
22 Cloud_inexistant.SetAltitudesInverted( 0 );
23 ret = Cloud_inexistant.ImportFromFile( os.path.join(HYDRO_SAMPLES, "Cloud_inexistant.xyz" ))
26 raise ValueError('loading problem not detected: return value should be null')
28 if salome.sg.hasDesktop():
29 salome.sg.updateObjBrowser()