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.

datetime_to_matlab_datenum

excel_to_datetime

get_equidistant_series

get_sample

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.

matlab_datenum_to_datetime

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.

timestep_weighted_resample

timestep_weighted_resample_fase

validate_name

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