Log#

class pharmpy.workflows.Log(entries=())[source]#

Bases: object

Timestamped error and warning log

Attributes Summary

errors

warnings

Methods Summary

from_dict(d)

log_error(message)

Log an error

log_warning(message)

Log a warning

to_dataframe()

Create an overview dataframe from log

to_dict()

Attributes Documentation

errors#
warnings#

Methods Documentation

classmethod from_dict(d)[source]#
log_error(message)[source]#

Log an error

Parameters:

message (str) – Error message

log_warning(message)[source]#

Log a warning

Parameters:

message (str) – Warning message

to_dataframe()[source]#

Create an overview dataframe from log

Returns:

pd.DataFrame – Dataframe with overview of log entries

to_dict()[source]#