From a53d898f6bc52fa3d80fe765dc9adaea24b56b24 Mon Sep 17 00:00:00 2001 From: Alba Vilanova Date: Wed, 15 Mar 2023 11:22:59 +0100 Subject: [PATCH] Fix arguments in gather for points datasets --- nes/nc_projections/default_nes.py | 4 ++-- nes/nc_projections/points_nes.py | 8 ++++---- nes/nc_projections/points_nes_ghost.py | 8 ++++---- nes/nc_projections/points_nes_providentia.py | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/nes/nc_projections/default_nes.py b/nes/nc_projections/default_nes.py index 010c006..92220e7 100644 --- a/nes/nc_projections/default_nes.py +++ b/nes/nc_projections/default_nes.py @@ -3091,8 +3091,8 @@ class Nes(object): Returns ------- - data_list: dict - Variables dictionary with all the data from all the ranks. + data_to_gather: dict + Variables to gather. """ data_list = deepcopy(data_to_gather) diff --git a/nes/nc_projections/points_nes.py b/nes/nc_projections/points_nes.py index f542bac..3d55257 100644 --- a/nes/nc_projections/points_nes.py +++ b/nes/nc_projections/points_nes.py @@ -489,16 +489,16 @@ class PointsNes(Nes): return None - def _gather_data(self): + def _gather_data(self, data_to_gather): """ Gather all the variable data into the MPI rank 0 to perform a serial write. Returns ------- - data_list: dict - Variables dictionary with all the data from all the ranks. + data_to_gather: dict + Variables to gather. """ - data_list = deepcopy(self.variables) + data_list = deepcopy(data_to_gather) for var_name, var_info in data_list.items(): try: # noinspection PyArgumentList diff --git a/nes/nc_projections/points_nes_ghost.py b/nes/nc_projections/points_nes_ghost.py index 936cbca..978f4d5 100644 --- a/nes/nc_projections/points_nes_ghost.py +++ b/nes/nc_projections/points_nes_ghost.py @@ -481,17 +481,17 @@ class PointsNesGHOST(PointsNes): return None - def _gather_data(self): + def _gather_data(self, data_to_gather): """ Gather all the variable data into the MPI rank 0 to perform a serial write. Returns ------- - data_list: dict - Variables dictionary with all the data from all the ranks. + data_to_gather: dict + Variables to gather. """ - data_list = deepcopy(self.variables) + data_list = deepcopy(data_to_gather) for var_name, var_info in data_list.items(): try: # noinspection PyArgumentList diff --git a/nes/nc_projections/points_nes_providentia.py b/nes/nc_projections/points_nes_providentia.py index 937d7e6..91229da 100644 --- a/nes/nc_projections/points_nes_providentia.py +++ b/nes/nc_projections/points_nes_providentia.py @@ -517,17 +517,17 @@ class PointsNesProvidentia(PointsNes): return None - def _gather_data(self): + def _gather_data(self, data_to_gather): """ Gather all the variable data into the MPI rank 0 to perform a serial write. Returns ------- - data_list: dict - Variables dictionary with all the data from all the ranks. + data_to_gather: dict + Variables to gather. """ - data_list = deepcopy(self.variables) + data_list = deepcopy(data_to_gather) for var_name, var_info in data_list.items(): try: # noinspection PyArgumentList -- GitLab