Skip to content

Better logging of print calls #476

Description

@lkstrp

Describe the feature you'd like to see

There are a couple of print() calls in linopy. When a model is infeasible, pypsa-eur calls model.print_infeasibilities(), which calls print_labels(), which prints the infeasibilities to stdout, but not to the logs.

Would it theoretically be possible to replace all print() calls in linopy, with logger.info()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions