Commit a014e614 authored by Theo Steininger's avatar Theo Steininger

Now, only rank==0 produces plotly plots.

parent c0b169f1
Pipeline #15427 passed with stages
in 12 minutes and 25 seconds
......@@ -86,17 +86,20 @@ class PlotterBase(Loggable, object):
for field in fields]
# create plots
plots_list = []
for slice_list in utilities.get_slice_list(data_list[0].shape, axes):
plots_list += \
[[self.plot.at(self._parse_data(current_data,
field,
spaces))
for (current_data, field) in zip(data_list, fields)]]
figures = [self.figure.at(plots, title=title) for plots in plots_list]
self._finalize_figure(figures, path=path)
if rank == 0:
plots_list = []
for slice_list in utilities.get_slice_list(data_list[0].shape,
axes):
plots_list += \
[[self.plot.at(self._parse_data(current_data,
field,
spaces))
for (current_data, field) in zip(data_list, fields)]]
figures = [self.figure.at(plots, title=title)
for plots in plots_list]
self._finalize_figure(figures, path=path)
def _get_data_from_field(self, field, spaces, data_extractor):
for i, space_index in enumerate(spaces):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment