mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4519 Fix error in example python script
This commit is contained in:
parent
c2c312068c
commit
2971c74c2e
@ -15,7 +15,7 @@ if resInsight is not None:
|
|||||||
assert(case.classKeyword() == "EclipseCase")
|
assert(case.classKeyword() == "EclipseCase")
|
||||||
print("\n#### Case ####")
|
print("\n#### Case ####")
|
||||||
for keyword in case.keywords():
|
for keyword in case.keywords():
|
||||||
print (keyword + ": " + case.getValue(keyword))
|
print (keyword + ": " + str(case.getValue(keyword)))
|
||||||
print ("\n####Project#####")
|
print ("\n####Project#####")
|
||||||
pdmProject = case.ancestor(classKeyword="ResInsightProject")
|
pdmProject = case.ancestor(classKeyword="ResInsightProject")
|
||||||
assert(pdmProject)
|
assert(pdmProject)
|
||||||
@ -23,7 +23,7 @@ if resInsight is not None:
|
|||||||
assert(pdmProject.address() == resInsight.project.address())
|
assert(pdmProject.address() == resInsight.project.address())
|
||||||
|
|
||||||
for keyword in resInsight.project.keywords():
|
for keyword in resInsight.project.keywords():
|
||||||
print (keyword + ": " + resInsight.project.getValue(keyword))
|
print (keyword + ": " + str(resInsight.project.getValue(keyword)))
|
||||||
pdmViews = resInsight.project.views()
|
pdmViews = resInsight.project.views()
|
||||||
for view in pdmViews:
|
for view in pdmViews:
|
||||||
print ("\n####View####")
|
print ("\n####View####")
|
||||||
|
Loading…
Reference in New Issue
Block a user