Timeseries_daily_extreme_from_2D_fields ❌
This notebook failed in the latest run for exp2.0_run2-expt-3d030595 (2026-10-19 16:02 AEDT).
Why it failed
The lines below are picked out of the error; the first error listed is usually the cause.
ValueError: Number of rows must be a positive integer, not 0
ValueError Traceback (most recent call last)
921 raise ValueError("'width_ratios' must not be defined both as "
---> 48 raise ValueError(
51 raise ValueError(
ValueError: Number of rows must be a positive integer, not 0
Full error (from mkfigs_errors.log)
ValueError: Number of rows must be a positive integer, not 0
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[8], line 22
18 freqs = sorted({freq_used[v] for p in complete_pairs.values() for v in p.values()})
19 period = {"1day": "daily", "1mon": "monthly"}.get(freqs[0], freqs[0]) if len(freqs) == 1 else "mixed-frequency"
20
21 n = len(complete_pairs)
---> 22 fig, axes = plt.subplots(n, 2, figsize=(14, 3*n), sharex=True)
23 if n == 1:
24 axes = axes[None, :]
25
File /g/data/xp65/public/apps/med_conda/envs/analysis3-26.08/lib/python3.12/site-packages/matplotlib/pyplot.py:1777, in subplots(nrows, ncols, sharex, sharey, squeeze, width_ratios, height_ratios, subplot_kw, gridspec_kw, **fig_kw)
1632 """
1633 Create a figure and a set of subplots.
1634
(...) 1774
1775 """
1776 fig = figure(**fig_kw)
-> 1777 axs = fig.subplots(nrows=nrows, ncols=ncols, sharex=sharex, sharey=sharey,
1778 squeeze=squeeze, subplot_kw=subplot_kw,
1779 gridspec_kw=gridspec_kw, height_ratios=height_ratios,
1780 width_ratios=width_ratios)
1781 return fig, axs
File /g/data/xp65/public/apps/med_conda/envs/analysis3-26.08/lib/python3.12/site-packages/matplotlib/figure.py:925, in FigureBase.subplots(self, nrows, ncols, sharex, sharey, squeeze, width_ratios, height_ratios, subplot_kw, gridspec_kw)
921 raise ValueError("'width_ratios' must not be defined both as "
922 "parameter and as key in 'gridspec_kw'")
923 gridspec_kw['width_ratios'] = width_ratios
--> 925 gs = self.add_gridspec(nrows, ncols, figure=self, **gridspec_kw)
926 axs = gs.subplots(sharex=sharex, sharey=sharey, squeeze=squeeze,
927 subplot_kw=subplot_kw)
928 return axs
File /g/data/xp65/public/apps/med_conda/envs/analysis3-26.08/lib/python3.12/site-packages/matplotlib/figure.py:1607, in FigureBase.add_gridspec(self, nrows, ncols, **kwargs)
1564 """
1565 Low-level API for creating a `.GridSpec` that has this figure as a parent.
1566
(...) 1603
1604 """
1606 _ = kwargs.pop('figure', None) # pop in case user has added this...
-> 1607 gs = GridSpec(nrows=nrows, ncols=ncols, figure=self, **kwargs)
1608 return gs
File /g/data/xp65/public/apps/med_conda/envs/analysis3-26.08/lib/python3.12/site-packages/matplotlib/gridspec.py:363, in GridSpec.__init__(self, nrows, ncols, figure, left, bottom, right, top, wspace, hspace, width_ratios, height_ratios)
360 self.hspace = hspace
361 self.figure = figure
--> 363 super().__init__(nrows, ncols,
364 width_ratios=width_ratios,
365 height_ratios=height_ratios)
File /g/data/xp65/public/apps/med_conda/envs/analysis3-26.08/lib/python3.12/site-packages/matplotlib/gridspec.py:48, in GridSpecBase.__init__(self, nrows, ncols, height_ratios, width_ratios)
33 """
34 Parameters
35 ----------
(...) 45 If not given, all rows will have the same height.
46 """
47 if not isinstance(nrows, Integral) or nrows <= 0:
---> 48 raise ValueError(
49 f"Number of rows must be a positive integer, not {nrows!r}")
50 if not isinstance(ncols, Integral) or ncols <= 0:
51 raise ValueError(
52 f"Number of columns must be a positive integer, not {ncols!r}")
ValueError: Number of rows must be a positive integer, not 0
The partly-run notebook shows every cell up to and including the one that failed.