From 4f270603ebffc82359a7629e86a51af0d576a4ad Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Thu, 11 Jun 2026 17:53:08 +0200 Subject: [PATCH] Update python test and example --- .../launch_load_case_snapshot_exit.py | 2 +- GrpcInterface/Python/rips/tests/test_project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GrpcInterface/Python/rips/PythonExamples/instance_and_project_management/launch_load_case_snapshot_exit.py b/GrpcInterface/Python/rips/PythonExamples/instance_and_project_management/launch_load_case_snapshot_exit.py index 904d12b9e6..30f26772cf 100644 --- a/GrpcInterface/Python/rips/PythonExamples/instance_and_project_management/launch_load_case_snapshot_exit.py +++ b/GrpcInterface/Python/rips/PythonExamples/instance_and_project_management/launch_load_case_snapshot_exit.py @@ -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() diff --git a/GrpcInterface/Python/rips/tests/test_project.py b/GrpcInterface/Python/rips/tests/test_project.py index 8e5c6c83fc..0c7f80bc7b 100644 --- a/GrpcInterface/Python/rips/tests/test_project.py +++ b/GrpcInterface/Python/rips/tests/test_project.py @@ -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):