@@ -311,6 +311,12 @@ def evaluate_expressions(self, augmented_path, input_stream, selected_expression
311311 yield time_value , value_array
312312
313313 def decode (self , input_stream , time_index , node_code ):
314+ """
315+ @param input_stream <slf.Serafin.Read>: the input Serafin
316+ @param time_index <int>: the index of the frame (0-based)
317+ @param node_code <str>: expression abbreviation (?)
318+ @return <(numpy 1D-array, ???)>: node_values, node_object
319+ """
314320 if node_code == 'COORDX' :
315321 return self .x , None
316322 elif node_code == 'COORDY' :
@@ -328,6 +334,11 @@ def decode(self, input_stream, time_index, node_code):
328334 return None , self .expressions [index ]
329335
330336 def _evaluate_expressions (self , input_stream , time_index , path ):
337+ """!
338+ @param input_stream <slf.Serafin.Read>: the input Serafin
339+ @param time_index <int>: the index of the frame (0-based)
340+ @param path <[str]>: list of expressions (?)
341+ """
331342 # evaluate each node on the augmented path
332343 values = {node : None for node in path }
333344 for node in path :
@@ -357,6 +368,9 @@ def clear(self):
357368 self .representative = None
358369
359370 def get_data (self , input_data ):
371+ """!
372+ @param input_data <slf.datatypes.SerafinData>: input SerafinData stream
373+ """
360374 self .input_data = input_data
361375 self .nb_pools = len (input_data )
362376
@@ -467,7 +481,7 @@ def output_headers(self, selected_names):
467481 output_header = data .header .copy ()
468482 output_header .empty_variables ()
469483 for name in selected_names :
470- output_header .add_variables_str ('DUMMY' , name , '' )
484+ output_header .add_variable_str ('DUMMY' , name , '' )
471485 yield output_header
472486
473487 def build_augmented_path (self , selected_expressions ):
0 commit comments