cr-connect-workflow/crc/scripts/study_data_set.py

31 lines
971 B
Python
Raw Normal View History

from crc.scripts.data_store_base import DataStoreBase
from crc.scripts.script import Script
class StudyDataSet(Script,DataStoreBase):
def get_description(self):
return """Sets study data from the data store."""
def do_task_validate_only(self, task, study_id, workflow_id, *args, **kwargs):
2020-11-10 16:32:59 +00:00
self.set_validate_common(study_id,
workflow_id,
None,
'study_data_set',
*args)
def do_task(self, task, study_id, workflow_id, *args, **kwargs):
2020-11-11 14:44:58 +00:00
return self.set_data_common(task.id,
2020-11-10 16:32:59 +00:00
study_id,
None,
workflow_id,
2020-11-11 14:44:58 +00:00
None,
2020-11-10 16:32:59 +00:00
'study_data_set',
*args,
**kwargs)