Skip to content

Better hashing of generic objects #776

@tclose

Description

@tclose
Contributor

Currently the hashing of generic objects is a bit brittle, for example torch.Tensor objects don't have an empty __dict__ so they all get hashed to the same value. An option is to iterate through all the attributes in __dir__ and find all the non-method/property attributes to make a hash out of, this could be quite difficult to do generically though...

Activity

converted this from a draft issue on Apr 1, 2025
moved this from Proposed to temp in Pydra Roadmapon Apr 29, 2025
moved this from temp to To do (v1.0) in Pydra Roadmapon Apr 29, 2025
tclose

tclose commented on Apr 29, 2025

@tclose
ContributorAuthor

Also see PR #762, that attempts to address "numpylike" objects

moved this from Triage to v1.0 in Pydra Roadmapon May 8, 2025
tclose

tclose commented on May 8, 2025

@tclose
ContributorAuthor

Related to #767

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

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    v1.0

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tclose

        Issue actions

          Better hashing of generic objects · Issue #776 · nipype/pydra