def test_store_output(self): parallel_id = ParallelIdentifier([]) io.store_output(net=self.net, operation_id=self.output_operation_id, property_name=self.output_property_name, value=self.value, parallel_id=parallel_id) only_value = self.net.variables.value.values()[0] self.assertEqual(self.value, only_value)
def store_output_then_load_output(self, parallel_id): pi = ParallelIdentifier(parallel_id) io.store_output(net=self.net, operation_id=self.output_operation_id, property_name=self.output_property_name, value=self.value, parallel_id=pi) self.assertEqual(self.value, io.load_output(net=self.net, operation_id=self.output_operation_id, property_name=self.output_property_name, parallel_id=pi))
def store_output_then_load_input(self, store_parallel_id, load_parallel_id): spi = ParallelIdentifier(store_parallel_id) lpi = ParallelIdentifier(load_parallel_id) io.store_output(net=self.net, operation_id=self.output_operation_id, property_name=self.output_property_name, value=self.value, parallel_id=spi) self.assertEqual(self.value, io.load_input(net=self.net, input_connections=self.input_connections, property_name=self.input_property_name, parallel_id=lpi))
def store_output(self, name, value, parallel_id): io.store_output( net=self.net, operation_id=self.operation_id, parallel_id=parallel_id, property_name=name, value=value )