Skip to content

Check for supported dtypes when adding new mag #894

@hotzenklotz

Description

@hotzenklotz

Detailed Description

  • Affected library: webknossos

When adding a new mag / adding data to a layer, we should assert that the data's dtype is actually supported by WEBKNOSSOS and can be rendered. If not, provide a warning.

Probably should be handled by the mag.write() method or when creating a new layer.

Supported dtypes can be found: https://docs.webknossos.org/webknossos/data_formats.html#wkw-datasets or at scalableminds/webknossos#6581

Use Cases & Context

This could prevent user errors, e.g. uploading color layer data as uint64.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions