Report#

class ansys.tools.common.report.Report(additional=None, ncol=3, text_width=80, sort=False, gpu=True, ansys_vars=None, ansys_libs=None)#

Bases: scooby.Report

Generate a scooby.Report instance.

Parameters#

additionallist(ModuleType), list(str), default: None

List of packages or package names to add to output information.

ncolint, default: 3

Number of package-columns in the HTML table. This parameter is applicable only has effect if mode='HTML' or mode='html'.

text_widthint, default: 80

Text width for non-HTML display modes.

sortbool, default: False

Whether to alphabetically sort the packages.

gpubool, default: True

Whether to gather information about the GPU. While the default is``True``, if rendering issues are experienced, pass False to safely generate a report.

ansys_varslist of str, default: None

List containing the Ansys environment variables to report on. For example, ["MYVAR_1", "MYVAR_2" ...]

ansys_libsdict {strstr}, default: None

Dictionary containing the Ansys libraries and versions to report on. For example, {"MyLib" : "v1.2", ...}.

Overview#

project_info

Get information regarding the Ansys environment and installation.

__repr__

Print out the report.

Import detail#

from ansys.tools.common.report import Report

Method detail#

Report.project_info()#

Get information regarding the Ansys environment and installation.

Returns#

str

Project information (environment variables and installation).

Report.__repr__()#

Print out the report.

Returns#

str

Report statement.