# Get current study id
salome.salome_init()
theStudy = salome.myStudy
-theStudyId = salome.myStudy._get_StudyId()
+#theStudyId = salome.myStudy._get_StudyId()
"""Bad parameters exception"""
class BadParamsError(ValueError):
"""
def assignStrickler(case_name, med_file_name, output_file_name, med_field_name='FRICTION'):
# Check calculation case
- doc = HYDROPy.HYDROData_Document.Document( theStudyId )
+ doc = HYDROPy.HYDROData_Document.Document()
case = doc.FindObjectByName(case_name)
if case is None:
raise BadParamsError("Calculation case '%s' not found" % case_name)