Skip to content

dataset.add_layer_as_copy does not copy view configuration #1345

@valentin-pinkau

Description

@valentin-pinkau

Context

Affected library: webknossos
when copying a layer its view configuration is discarded

Expected Behavior

when copying a layer its view configuration should be copied as well

Current Behavior

view configuration is discarded

Steps to Reproduce the bug

src_layer.default_view_configuration = some_configuration
dst_layer = dst_dataset.add_layer_as_copy(src_layer)
dst_layer.default_view_configuration is None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions