ansys.rocky.core.examples
#
Helper module to download project code examples.
Module Contents#
Functions#
|
Download an example file from the Ansys example data repository. |
Attributes#
- ansys.rocky.core.examples.logger#
- ansys.rocky.core.examples.ANSYS_EXAMPLE_DATA_REPO = 'https://github.com/ansys/example-data/raw/master'#
- ansys.rocky.core.examples.download_file(save_path: str, file_name: str, directory: str | None = None) str #
Download an example file from the Ansys example data repository.
- Parameters:
- Returns:
str
Path of the downloaded file.
Examples
>>> from ansys.rocky.core.examples import download_file >>> file_path = download_file('
' , 'bracket.iges', 'geometry') '/bracket.iges'