Chris Bunney

Results 24 issues of Chris Bunney

## 🚀 Pull Request ### Description Iris fails to load cubes from a netCDF file if the `cell_method` attribute is malformed and throws this slightly unhelpful error: ```python File /opt/scitools/conda/deployments/default-2024_02_20/lib/python3.11/site-packages/iris/fileformats/_nc_load_rules/helpers.py:267,...

## 🐛 Bug Report Iris fails to load some netCDF files due to a malformed `cell_method` attribute, but is throwing a slightly unhelpful error: ```python File /opt/scitools/conda/deployments/default-2024_02_20/lib/python3.11/site-packages/iris/fileformats/_nc_load_rules/helpers.py:267, in _split_cell_methods(nc_cell_methods) 265...

Type: Bug

## 🚀 Pull Request As per #467, but for module function `num2date` The underlying cftime package will now preferentially return an integer rather than a float if if encoded datetime(s)...

Type: Documentation

PR #456 added `repo-review` as a pre-commit hook using the `sp-repo-review` plugin (https://pypi.org/project/sp-repo-review/) Several of the checks are failing for the `cf-units` repository (expected). The failing tests are currently set...

Type: Infrastructure
New: Issue

## 🚀 Pull Request ### Description Fixes: #6027 Logic for comparing arrays in attributes was relying on old numpy behaviour where an array compared to another any object would return...

## 🚀 Pull Request ### Description _Note: This branch is currently based on **qa_reresh_pre-commit-hooks** branch, but will rebase on main once that branch is merged. First relevant commit is 2fc5e4f_...

```[tasklist] ### Tasks - [x] `A001` builtin-variable-shadowing - [ ] `ANN001` missing-type-function-argument - [ ] `ANN003` missing type annotation for `**kwargs` - [ ] `ANN201` missing-return-type-undocumented-public-function - [ ] `ANN202`...

The following numpydoc errors are being generated and need addressing: ```[tasklist] ### Numpydoc error codes - [ ] `GL08` The object does not have a docstring - [ ] `PR01`...

repo-checking

The following typing errors are being generated by `mypy` and need addressing in the code: ```[tasklist] ### Error code - [ ] `arg-type` - [ ] `assignment` - [ ]...

repo-checking

## 📰 Custom Issue Following a QA refresh of this repo, the following Ruff checks are failing (and are currently being ignored in pyproject.toml): ```[tasklist] ### Flake8-builtins - [x] `A001`...

New: Issue