@@ -67,11 +67,8 @@ def run_card(self, card, wait=True):
6767 body = card .get_raw ()
6868 )
6969
70- def wrap_card_result (result ):
71- return DSSStatisticsCardResult (result )
72-
73- future = DSSFuture (self .client , future_response .get ("jobId" , None ),
74- future_response , result_wrapper = wrap_card_result )
70+ future = DSSFuture (self .client , future_response .get ("jobId" , None ), future_response ,
71+ result_wrapper = lambda raw_result : DSSStatisticsCardResult (raw_result ))
7572
7673 return future .wait_for_result () if wait else future
7774
@@ -93,11 +90,8 @@ def run_computation(self, computation, wait=True):
9390 body = computation .get_raw ()
9491 )
9592
96- def wrap_computation_result (result ):
97- return DSSStatisticsComputationResult (result )
98-
99- future = DSSFuture (self .client , future_response .get ("jobId" , None ),
100- future_response , result_wrapper = wrap_computation_result )
93+ future = DSSFuture (self .client , future_response .get ("jobId" , None ), future_response ,
94+ result_wrapper = lambda raw_result : DSSStatisticsComputationResult (raw_result ))
10195
10296 return future .wait_for_result () if wait else future
10397
0 commit comments