export_report_to_file#
- PostProcessor.export_report_to_file(output_dir, plot_name, extension, unique_file=False, uniform=False, start=None, end=None, step=None, use_trace_number_format=False)[source]#
Export a 2D Plot data to a file.
This method leaves the data in the plot (as data) as a reference for the Plot after the loops.
- Parameters:
- output_dir
str
Path to the directory of exported report
- plot_name
str
Name of the plot to export.
- extension
str
- Extension of export , one of
(CSV) .csv
(Tab delimited) .tab
(Post processor format) .txt
(Ensight XY data) .exy
(Anosft Plot Data) .dat
(Ansoft Report Data Files) .rdat
- unique_filebool
If set to True, generates unique file in output_dit
- uniformbool,
optional
Whether the export uniform points to the file. The default is
False
.- start
str
,optional
Start range with units for the sweep if the
uniform
parameter is set toTrue
.- end
str
,optional
End range with units for the sweep if the
uniform
parameter is set toTrue
.- step
str
,optional
Step range with units for the sweep if the
uniform
parameter is set toTrue
.- use_trace_number_formatbool,
optional
Whether to use trace number formats and use separate columns for curve. The default is
False
.
- output_dir
- Returns:
str
Path of exported file.
References
>>> oModule.ExportReportDataToFile >>> oModule.ExportUniformPointsToFile >>> oModule.ExportToFile
Examples
>>> from pyaedt import Circuit >>> cir = Circuit("my_project.aedt") >>> report = cir.post.create_report("MyScattering") >>> cir.post.export_report_to_file("C:\temp", "MyTestScattering", ".csv")