create_report_from_configuration#
- PostProcessor3D.create_report_from_configuration(input_file: str = None, report_settings: dict = None, solution_name: str = None, name: str = None, matplotlib: bool = False, show: bool = True, hide_legend: bool = False, snapshot_path: str = None, width: int = 800, height: int = 450) Standard | AMIEyeDiagram | AMIConturEyeDiagram | EMIReceiver | EyeDiagram | CircuitNetlistReport | Fields | FarField | NearField | Spectral | ReportPlotter | None | bool#
Create a report based on a JSON file, TOML file, RPT file, or dictionary of properties.
- Parameters:
- input_file
str,optional Path to the JSON, TOML, or RPT file containing report settings.
- report_settings
dict,optional Dictionary containing report settings.
- solution_name
str,optional Setup name to use.
- name
str,optional Report name. The default is
None, in which case the default name is used.- matplotlibbool,
optional Whether to use AEDT or ReportPlotter to generate the plot. Eye diagrams are not supported.
- showbool,
optional Whether to show the plot when using ReportPlotter. The default is
True. If matplotlib isFalse, this parameter is ignored.- hide_legendbool,
optional Whether to hide the legend when using AEDT reporter. The default is
False.- snapshot_path
str,optional Full path to image file if a snapshot is needed. The default is
None.- width
int,optional Image width. Default is
800which takes Desktop size or 800 pixel.- height
int,optional Image height. Default is
450which takes Desktop size or 450 pixel.
- input_file
- Returns:
ansys.aedt.core.modules.report_templates.StandardorNoneReport object if succeeded.
Examples
Create report from JSON file. >>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.post.create_report_from_configuration( … r”C:tempmy_report.json”, solution_name=”Setup1 : LastAdpative” … )
Create report from RPT file. >>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.post.create_report_from_configuration(r”C:tempmy_report.rpt”)
Create report from dictionary. >>> from ansys.aedt.core import Hfss >>> from ansys.aedt.core.generic.file_utils import read_json >>> hfss = Hfss() >>> dict_vals = read_json(“Report_Simple.json”) >>> hfss.post.create_report_from_configuration(report_settings=dict_vals)