mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 14:17:52 -05:00
Update python test and example
This commit is contained in:
1 parent
ec9feff950
commit
4f270603eb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ resinsight.set_export_folder(export_type="SNAPSHOTS", path="e:/temp")
|
||||
resinsight.set_export_folder(export_type="PROPERTIES", path="e:/temp")
|
||||
|
||||
# Export all snapshots
|
||||
resinsight.project.export_snapshots()
|
||||
resinsight.project.export_snapshots(width=800, height=600)
|
||||
|
||||
# Export properties in the view
|
||||
view1.export_property()
|
||||
|
||||
@@ -248,7 +248,7 @@ def test_exportSnapshots(rips_instance, initialize_test):
|
||||
with tempfile.TemporaryDirectory(prefix="rips") as tmpdirname:
|
||||
print("Temporary folder: ", tmpdirname)
|
||||
rips_instance.set_export_folder(export_type="SNAPSHOTS", path=tmpdirname)
|
||||
rips_instance.project.export_snapshots()
|
||||
rips_instance.project.export_snapshots(width=640, height=480)
|
||||
print(os.listdir(tmpdirname))
|
||||
# assert(len(os.listdir(tmpdirname)) > 0)
|
||||
for fileName in os.listdir(tmpdirname):
|
||||
|
||||
Reference in new issue
Block a user