Skip to content

Loading ESN from pickle doubles logger output #3

Description

@baurse

Saving an ESN object or one of its child/derivative classes to disk via ESN.to_pickle() and then loading it via pandas.read_pickle() doubles the output of the logger.
Likely two logger instances are created, one when loaded the class and another one one loading the class instance from file.

The fix for this is to re-write the rescomp logger not as a parent class to the ESN classes, but as a class that's defined and created exactly ones when the rescomp module is loaded. Or just re-write it using loguru which is probably just better.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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