Skip to content

Commit

Permalink
Update webknossos/webknossos/dataset/dataset.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 d6dfaad commit 4ef57c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webknossos/webknossos/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def add_layer_like(self, other_layer: Layer, layer_name: str) -> Layer:
def _add_existing_layer(self, layer_properties: LayerProperties) -> Layer:
self._ensure_writable()

assert layer_properties.name not in self.layers
assert layer_properties.name not in self.layers, f"Cannot import layer “{layer-properties.name}” into datasource, as a layer with this name is already present."

self._properties.data_layers.append(layer_properties)
layer = self._initialize_layer_from_properties(layer_properties)
Expand Down

0 comments on commit 4ef57c8

Please sign in to comment.