Skip to content

_frozen_block lists ExperimentBlock fields by name (a new defaulted field would reset after pickling) #652

Backlog

Description

@guijacquemet

Optional follow-up from the review of #651 (merged). _frozen_block (src/morphocoverage/described.py:178-186) rebuilds an ExperimentBlock from an explicit list of field names. A future field with a default value would be silently reset to its default after pickling (e.g. when sent to a parallel worker). Build the mapping from dataclasses.fields(ExperimentBlock) instead, and extend the round-trip test to compare every field.

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