ansys.dyna.core.pre.misc#
Module providing miscellaneous functions and methods.
Attributes#
Classes#
Functions#
|
Determine if a string can be converted to a float. |
|
Generate a random string of a fixed length. |
|
Create a unique working directory in a temporary directory. |
|
Check if an IP address is valid. |
|
Check if a port is valid. |
Module Contents#
- class ansys.dyna.core.pre.misc.Plain_Report(core, optional=None, additional=None, **kwargs)[source]#
- ansys.dyna.core.pre.misc.is_float(input_string)[source]#
Determine if a string can be converted to a float.
- ansys.dyna.core.pre.misc.random_string(stringLength=10, letters=string.ascii_lowercase)[source]#
Generate a random string of a fixed length.
- Parameters:
- stringLength
int
,optional
Length of the string. The default is
10
.- letters
- stringLength
- ansys.dyna.core.pre.misc.create_temp_dir(tmpdir=None)[source]#
Create a unique working directory in a temporary directory.
- Parameters:
- tempdir
str
,optional
Name of the temporary directory to create the working directory in. The default is
None
.
- tempdir