ResInsight icon indicating copy to clipboard operation
ResInsight copied to clipboard

2022-06: summary_case.print_object_info() Error

Open OPMUSER opened this issue 3 years ago • 0 comments

I'm trying to create a script to batch print the plots in a project, and I need to get the directory for the summary cases, that is

summary_case = resinsight.project.summary_case(case_id=1)
summary_case.print_object_info()

But I keep on getting this:

Successfully connected to ResInsight
Summary Case Found: 3
Summary Case Found:  WVFPEXP-01
Summary Case Found:  WVFPEXP-01-ECL
Summary Case Found:  Calculated

Traceback (most recent call last):
  File "D:\Linux\OPM\ResInsight\Python\export_plots.py", line 31, in <module>
    summary_case.print_object_info()
AttributeError: 'NoneType' object has no attribute 'print_object_info'

The code was taken from one the examples.

I'm doing something wrong or is this a bug?

OPMUSER avatar Sep 17 '22 11:09 OPMUSER