flow360.report.ReportTemplate#
- class ReportTemplate#
Bases:
Flow360BaseModel
A model representing a report containing various components such as summaries, inputs, tables, and charts in both 2D and 3D.
- items: List[Annotated[Summary | Inputs | Table | NonlinearResiduals | Chart2D | Chart3D, FieldInfo(annotation=NoneType, required=True, discriminator='type_name')]] [Required]#
A list of report items, each of which can be a summary, input data, table, 2D chart, or 3D chart.
- include_case_by_case: bool = False#
Flag indicating whether to include a case-by-case analysis in the report.
- get_requirements()#
Collects and returns unique requirements from all items.
This method iterates over all items, retrieves each itemβs requirements, and aggregates them into a unique list.
- Returns:
A list of unique requirements aggregated from all items.
- Return type:
- create_in_cloud(name, cases, landscape=False, solver_version=None)#
Creates a report in the cloud for a specified set of cases.
- Parameters:
- Returns:
The response from the Report API submission.
- Return type:
Response
- create_pdf(filename, cases, landscape=True, data_storage='.', shutter_url=None, shutter_access_token=None, shutter_screenshot_process_function=None, process_screenshot_in_parallel=True)#
Generates a PDF report for a specified set of cases.
- Parameters:
filename (str) β The name of the output PDF file.
cases (list[Case]) β A list of Case instances to include in the PDF report.
landscape (bool, default=False) β Orientation of the report, where True represents landscape.
data_storage (str, default=".") β Directory where the PDF file will be saved.
shutter_url (str)
shutter_access_token (str)
shutter_screenshot_process_function (Callable)
process_screenshot_in_parallel (bool)
- Return type:
None