Miscellaneous and report module.

Misc#

class ansys.dpf.post.misc.Report(additional=None, ncol=3, text_width=80, sort=False, gpu=True)#

Generate a report of installed packages for PyDPF-Post.

property architecture: str#

Return the bit architecture used for the executable.

property cpu_count: int#

Return the number of CPUs in the system.

property date: str#

Return the date formatted as a string.

property filesystem: str | Literal[False]#

Get the type of the file system at the path of the scooby package.

property machine: str#

Return the machine type, e.g. ‘i386’.

An empty string is returned if the value cannot be determined.

property mkl_info: str | None#

Return MKL info.

If not available, returns ‘unknown’.

property packages: Dict[str, Any]#

Return versions of all packages.

Includes available and unavailable/unknown.

property platform: str#

Return the platform.

property python_environment: Literal['Jupyter', 'IPython', 'Python']#

Return the python environment.

property sys_version: str#

Return the system version.

property system: str#

Return the system/OS name.

E.g. 'Linux (name version)', 'Windows', or 'Darwin'. An empty string is returned if the value cannot be determined.

to_dict()#

Return report as dict for storage.

Return type:

Dict[str, str]

property total_ram: str#

Return total RAM info.

If not available, returns ‘unknown’.