Skip to content
Snippets Groups Projects
Commit c4450a92 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

get sample type before using it in method call

parent 60361424
No related branches found
No related tags found
No related merge requests found
...@@ -3353,7 +3353,8 @@ class Openbis: ...@@ -3353,7 +3353,8 @@ class Openbis:
if 'collection' in kwargs: if 'collection' in kwargs:
kwargs['experiment'] = kwargs['collection'] kwargs['experiment'] = kwargs['collection']
kwargs.pop('collection', None) kwargs.pop('collection', None)
return Sample(self, type=self.get_sample_type(type), project=project, data=None, props=props, **kwargs) sample_type = self.get_sample_type(type)
return Sample(self, type=sample_type, project=project, data=None, props=props, **kwargs)
new_object = new_sample # Alias new_object = new_sample # Alias
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment