From aaee71e0d2e3c9456529bbb684acce4680de682c Mon Sep 17 00:00:00 2001 From: Norman Rzepka Date: Thu, 12 Oct 2023 13:16:52 +0200 Subject: [PATCH] Update webknossos/webknossos/annotation/annotation.py Co-authored-by: Florian M --- webknossos/webknossos/annotation/annotation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webknossos/webknossos/annotation/annotation.py b/webknossos/webknossos/annotation/annotation.py index ab426d21f..ed7a5a4b8 100644 --- a/webknossos/webknossos/annotation/annotation.py +++ b/webknossos/webknossos/annotation/annotation.py @@ -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