Since basicConfig(...) should only be called by the main thread/application and is idempotent, any script/module importing powerplantmatching cannot use basicConfig(...) to configure its logger, unless the logger configuration is done before importing PPM.
PPM uses
logging.basicConfig(...)
here:https://github.com/PyPSA/powerplantmatching/blob/afe45608439b4b8ba2f731d23051b6f90627b733/powerplantmatching/core.py#L59
Since
basicConfig(...)
should only be called by the main thread/application and is idempotent, any script/module importingpowerplantmatching
cannot usebasicConfig(...)
to configure its logger, unless the logger configuration is done before importing PPM.-> this should be removed