Skip to content

Self-reproducing objects #299

Description

@wpbonelli

New class definitions are self-describing in the sense that they encode the same information as the DFNs they were generated from, and it would be nice for components to be able to emit the DFNs they were created from, though they can't do this yet. This could be called spec reproduction.

It would also be very nice for instances to be self-describing/reproducing, in the sense of, being able to emit code that instantiates them. This could be called instance reproduction.

There is a project that does the latter for pre-mf6 flopy modules, https://github.com/bdestombe/python-flopy-parser. A native capability like this could ideally move into flopy. The author welcomes this idea and provided suggestions bdestombe/python-flopy-parser#3

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions