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): ...@@ -86,17 +86,20 @@ class PlotterBase(Loggable, object):
for field in fields] for field in fields]
# create plots # create plots
plots_list = [] if rank == 0:
for slice_list in utilities.get_slice_list(data_list[0].shape, axes): plots_list = []
plots_list += \ for slice_list in utilities.get_slice_list(data_list[0].shape,
[[self.plot.at(self._parse_data(current_data, axes):
field, plots_list += \
spaces)) [[self.plot.at(self._parse_data(current_data,
for (current_data, field) in zip(data_list, fields)]] field,
spaces))
figures = [self.figure.at(plots, title=title) for plots in plots_list] for (current_data, field) in zip(data_list, fields)]]
self._finalize_figure(figures, path=path) 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): def _get_data_from_field(self, field, spaces, data_extractor):
for i, space_index in enumerate(spaces): 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