ansys.dyna.core.lib.config#

Module for configuration settings.

Attributes#

Functions#

use_lspp_defaults()

Return whether LSPP default values are currently enabled.

csv_autodetect_enabled()

Return whether CSV format auto-detection is enabled.

disable_lspp_defaults()

Disable LSPP default values within the context.

disable_csv_autodetect()

Context manager to temporarily disable CSV format auto-detection.

Module Contents#

ansys.dyna.core.lib.config.USE_LSPP_DEFAULTS = True[source]#
ansys.dyna.core.lib.config.ENABLE_CSV_AUTODETECT = True[source]#
ansys.dyna.core.lib.config.use_lspp_defaults()[source]#

Return whether LSPP default values are currently enabled.

ansys.dyna.core.lib.config.csv_autodetect_enabled()[source]#

Return whether CSV format auto-detection is enabled.

ansys.dyna.core.lib.config.disable_lspp_defaults()[source]#

Disable LSPP default values within the context.

ansys.dyna.core.lib.config.disable_csv_autodetect()[source]#

Context manager to temporarily disable CSV format auto-detection.

By default, pydyna auto-detects comma-delimited (CSV) format in keyword card data. Use this context manager if CSV detection causes issues with specific files.

Examples

>>> from ansys.dyna.core.lib.config import disable_csv_autodetect
>>> with disable_csv_autodetect():
...     deck.loads(content)  # CSV detection disabled