Skip to content

Decluttering logs #1781

@JulianGeis

Description

@JulianGeis

🧹 Collect unnecessary or cluttering log messages

Let’s collect log messages from PyPSA-Eur that are unnecessary, overly verbose, or deprecated — especially those that clutter the output during typical workflows.

If you see any of the following, please paste them in a comment below:

  • Deprecation warnings (e.g. from pandas, xarray, numpy, etc.)
  • Verbose or unclear info/debug messages
  • Repeated or outdated warnings

Please include:

  • The full log message
  • The command you ran (if relevant)

🎯 Goal: Clean up and streamline PyPSA-Eur logs for a better user experience.

Thanks for contributing!

PyPSA specific

  • Importing network from PyPSA version v0.0.0 -> Bug
  • Plotting warning too verbose (When combining n.plot() with other plots on a geographical axis, ensure n.plot() is called first...)

Snakemake

  • The flag 'directory' used in rule all is only valid for outputs, not inputs.

PyPSA-Eur

  • build_industrial_production_per_country.py:170: FutureWarning: Allowing a non-bool 'na' in obj.str.contains is deprecated and will raise in a future version.
  • build_industrial_production_per_country_tomorrow.py:93: RuntimeWarning: invalid value encountered in scalar divide
  • WARNING:pypsa.network.io:The following Link have buses which are not defined:
    Index(['EU oil refining'], dtype='object')
  • WARNING:scripts.add_electricity:tech_colors for carriers ['', 'none'] not defined in config.
  • WARNING:pypsa.consistency:The following buses have no attached components, which can break the lopf: {'EU'}
  • [ ]

"make test".log

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