Skip to content

Commit

Permalink
Update webknossos/webknossos/annotation/annotation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Florian M <[email protected]>
  • Loading branch information
normanrz and fm3 authored Oct 12, 2023
1 parent 4ef57c8 commit aaee71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webknossos/webknossos/annotation/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ def export_volume_layer_to_dataset(
datasource_properties = dataset_converter.structure(
json.loads(data_zip.read(PROPERTIES_FILE_NAME)), DatasetProperties
)
assert len(datasource_properties.data_layers) == 1
assert len(datasource_properties.data_layers) == 1, f"Volume data zip must contain exactly one layer, got {len(datasource_properties.data_layers)}"
layer_properties = datasource_properties.data_layers[0]
internal_layer_name = layer_properties.name
layer_properties.name = layer_name
Expand Down

0 comments on commit aaee71e

Please sign in to comment.