Skip to content

Make self.partition state unique to each DataLoader worker. #138

Description

@alam-shahul

Consider instantiating a new PartitionedCellRepresentation object for each worker in the DataLoader using the worker_init_fn argument. That way, each worker has a different handle on the AnnData backed object and are not changing the same mutable state of a single object but rather change state of their own individual dataset objects.

This may not work, since it may or may not be possible to open multiple file handles for a backed AnnData (have to check)...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions