Skip to content

compound constituents not picklable #12

@barpaum

Description

@barpaum

I'm trying to pickle the tide model object of pytides, but got error of "TypeError: can't pickle instancemethod objects" for compound constituents.
How can I fix this?

example code:

import cPickle as pickle
tide_dec=Tide.decompose(ds,tc)
with open(fname, 'w') as fmodel:
    pickle.dump(tide_dec.model,fmodel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions