Skip to content

Settings object not hashable #128

@dotsdl

Description

@dotsdl

Our current Settings object does not appear to be hashable. This becomes a problem when trying to add a Transformation that includes a Settings object via its attached Protocol to an AlchemicalNetwork, as the AlchemicalNetwork deduplicates Transformations via a frozenset.

Currently we have individual __hash__ implementations for many GufeTokenizables in gufe, such as Transformation, ChemicalSystem and Protocol. These all should probably use the same __hash__ implementation as GufeTokenizable itself, and doing so should avoid the above.

This first surfaced in updating the example notebook for building an AlchemicalNetwork.

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