@@ -213,12 +213,12 @@ def finalize(self) -> None:
213213 self .gen_result = self ._running_gen_f .result ()
214214
215215 def export (
216- self , user_fields : bool = False , as_dicts : bool = False
216+ self , vocs_field_names : bool = False , as_dicts : bool = False
217217 ) -> tuple [npt .NDArray | list | None , dict | None , int | None ]:
218218 """Return the generator's results
219219 Parameters
220220 ----------
221- user_fields : bool, optional
221+ vocs_field_names : bool, optional
222222 If True, return local_H with variables unmapped from arrays back to individual fields.
223223 Default is False.
224224 as_dicts : bool, optional
@@ -227,7 +227,7 @@ def export(
227227 Returns
228228 -------
229229 local_H : npt.NDArray | list
230- Generator history array (unmapped if user_fields =True, as dicts if as_dicts=True).
230+ Generator history array (unmapped if vocs_field_names =True, as dicts if as_dicts=True).
231231 persis_info : dict
232232 Persistent information.
233233 tag : int
@@ -236,10 +236,10 @@ def export(
236236 if not self .gen_result :
237237 return (None , None , None )
238238 local_H , persis_info , tag = self .gen_result
239- if user_fields and local_H is not None and self .variables_mapping :
239+ if vocs_field_names and local_H is not None and self .variables_mapping :
240240 local_H = unmap_numpy_array (local_H , self .variables_mapping )
241241 if as_dicts and local_H is not None :
242- if user_fields and self .variables_mapping :
242+ if vocs_field_names and self .variables_mapping :
243243 local_H = np_to_list_dicts (local_H , self .variables_mapping )
244244 else :
245245 local_H = np_to_list_dicts (local_H )
0 commit comments