The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

pastas.utils#

This module contains utility functions for working with Pastas models.

Functions

add_file_handlers

Method to add file handlers in the logger of Pastas.

get_stress_tmin_tmax

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

initialize_logger

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

remove_console_handler

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

remove_file_handlers

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

set_console_handler

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

set_log_level

Set the log-level of the console.

validate_name

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