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
Example #2
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