utils#

This module contains utility functions for working with Pastas models.

Functions#

get_stress_tmin_tmax(→ tuple[pandas.Timestamp | str, ...)

Get the minimum and maximum time that all the stresses have data.

initialize_logger(→ None)

Internal method to create a logger instance to log program output.

set_console_handler(→ None)

Method to add a console handler to the logger of Pastas.

set_log_level(→ None)

Set the log-level for Pastas.

remove_console_handler(→ None)

Method to remove the console handler to the logger of Pastas.

add_file_handlers(, levels, maxBytes, backupCount, ...)

Method to add file handlers in the logger of Pastas.

remove_file_handlers(→ None)

Method to remove any file handlers in the logger of Pastas.

validate_name(→ str)

Method to check user-provided names and log a warning if wrong.