Mathias Hauser
Mathias Hauser
The validator could look like this (modeled after the `DataRequired` validator): ```python from wtforms.validators import StopValidation class FileRequired: def __init__(self, message=None): self.message = message self.field_flags = {"required": True} def __call__(self,...
That could look something like: ```python import numpy as np import mplotutils as mpu import matplotlib as mpl import cartopy.crs as ccrs def hatch_map(ax, da, hatch, label, linewidth=0.25, color="0.1"): """add...
should also add a `hatch` for non maps.
Might need three functions - `hatch` - `hatch_map` - `hatch_map_global` (wraparound)
We can add an empty patch for the legend... ```python xy = np.full((0, 2), fill_value=np.nan) empty_patch_legend = mpl.patches.Polygon( xy, facecolor="none", ec="0.1", lw=1, hatch="///", label="label", ) ax.add_patch(empty_patch_legend) ``` This avoids the...
Maybe just raise an error?
> Would it also be useful to add `ntv_pandas` in the ecosystem.rst file (for example in the 'Extend xarray capabilities' category) ? Yes, please go ahead.
Now you get a syntax error because `arr[*idx]` is only available in python 3.11 while our docs are in python 3.10 (and your ntv-numpy package is python 3.9+ - you...
Checking again - you absolutely need to start testing your packages continuously. I am reluctant to 'endorse' a package that does not have a CI pipeline. Let us know if...
No worries - I made a similar mistake before (CI pipeline not installing the correct python version/ environment). We have some guidelines for projects wanting to move to the `xarray-contrib`...