Skip to content
Snippets Groups Projects
Commit 36bf3c17 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: use correct function

parent 0560bbd1
No related branches found
No related tags found
1 merge request!9F bids
Pipeline #12147 passed with warnings
......@@ -26,7 +26,8 @@ import caosdb as db
from caosadvancedtools.cfood import (AbstractFileCFood, assure_has_description,
assure_has_parent, assure_has_property,
assure_object_is_in_list,
assure_property_is, fileguide, get_entity)
assure_property_is, assure_special_is,
fileguide, get_entity)
from .datastructure import BIDSStructure
......@@ -68,7 +69,7 @@ class DataSetCFood(AbstractFileCFood):
raise ValueError("Name of the dataset must be set in"
" 'dataset_description.json'.\n{}".format(self.crawled_path))
assure_property_is(entity=self.dataset,
name="name",
value=dataset_description['Name'],
to_be_updated=self.to_be_updated)
assure_special_is(entity=self.dataset,
value=dataset_description['Name'],
kind="name",
to_be_updated=self.to_be_updated)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment