def _store_float_array(array_data, subject_name, operation_id):
     """Create Float Array and DB persist it"""
     datatype_inst = MappedArray(user_tag_1=subject_name)
     datatype_inst.set_operation_id(operation_id)
     datatype_inst.array_data = array_data
     datatype_inst.type = "MappedArray"
     datatype_inst.module = "tvb.datatypes.arrays"
     datatype_inst.subject = subject_name
     datatype_inst.state = "RAW"
     dao.store_entity(datatype_inst)
Ejemplo n.º 2
0
 def _store_float_array(array_data, subject_name, operation_id):
     """Create Float Array and DB persist it"""
     datatype_inst = MappedArray(user_tag_1=subject_name)
     datatype_inst.set_operation_id(operation_id)
     datatype_inst.array_data = array_data
     datatype_inst.type = "MappedArray"
     datatype_inst.module = "tvb.datatypes.arrays"
     datatype_inst.subject = subject_name
     datatype_inst.state = "RAW"
     dao.store_entity(datatype_inst)
 def launch(self, input_data=None):
     """
     Saves in the db the following array.
     """
     self.launch_param = input_data
     array_inst = MappedArray()
     array_inst.storage_path = self.storage_path
     array_inst.array_data = numpy.array(range(1, 46)).reshape((5, 3, 3))
     array_inst.type = "MappedArray"
     array_inst.module = "tvb.datatypes.arrays"
     array_inst.subject = "John Doe"
     array_inst.state = "RAW"
     return array_inst
Ejemplo n.º 4
0
 def launch(self, input_data=None):
     """
     Saves in the db the following array.
     """
     self.launch_param = input_data
     array_inst = MappedArray()
     array_inst.storage_path = self.storage_path
     array_inst.array_data = numpy.array(range(1, 46)).reshape((5, 3, 3))
     array_inst.type = "MappedArray"
     array_inst.module = "tvb.datatypes.arrays"
     array_inst.subject = "John Doe"
     array_inst.state = "RAW"
     return array_inst