Skip to content

Chardata covcheck#7129

Closed
pp-mo wants to merge 13 commits into
SciTools:mainfrom
pp-mo:chardata_covcheck
Closed

Chardata covcheck#7129
pp-mo wants to merge 13 commits into
SciTools:mainfrom
pp-mo:chardata_covcheck

Conversation

@pp-mo
Copy link
Copy Markdown
Member

@pp-mo pp-mo commented Jun 2, 2026

Checking for coverage only

pp-mo and others added 13 commits March 16, 2026 18:23
* Initial tests.

* Get 'create_cf_data_variable' to call 'create_generic_cf_array_var': Mostly working?

Get 'create_cf_data_variable' to call 'create_generic_cf_array_var': Mostly working?

* Reinstate decode on load, now in-Iris coded.

* Revert and amend.

* Hack to preserve the existing order of attributes on saved Coords and Cubes.

* Fix for dataless; avoid FUTURE global state change from temporary tests.

* Further fix to attribute ordering.

* Fixes for data packing.

* Latest test-chararrays.

* Fix search+replace error.

* Tiny fix in crucial place! (merge error?).

* Extra mock property prevents weird test crashes.

* Fix another mock problem.

* Initial dataset wrappers.

Rename; addin parts of old investigation; add temporary notes.

* Various notes, choices + changes: Beginnings of encoded-dataset testing.

* Replace use of encoding functions with test-specific function: Test for overlength writes.

* Radically simplify 'make_bytesarray', by using a known specified bytewidth.

* Add read tests.

* Remove iris width control (not in this layer).

* more notes

* Remove temporary test code.

* Use iris categorised warnings for unknown encodings.

* Clarify the temporary load/save exercising tests (a bit).

* Use bytecoded_datasets in nc load+save, begin fixes.

* Further attempt to satisfy warning cateogry checker.

* Fix overlength error tests.

* Get temporary iris load/save exercises working (todo: proper tests).

* Put encoding information into separate converter class, for use in proxies.

* First proper testing (reads working).

* Encoded reading ~working; new ideas for switching (untested).

* Check loads when coords do/not share a string dim with data.

* Fix nondecoded reference loads in test_byecoded_datasets.

* Test writing of string data: various encodings, from strings or bytes.

* Fix write proxy; tmp_path in stringdata tests; tidy stringdata tests.

* Fix for non-string data.

* Pre-clear load problems.

* Fix mock patches.

* Fix patches in test_CFReader.

* Fix variable creation in odd cases.

* Ignore attribute reordering in scaling-packed saves.

* Fix test for refactored proxy constructor.

* Fix get_cf_var_data to support vlen-string.

* Add back new test results, folder removed in error.

* Fix string-type check in cf to suit any of the new dtypes.

* Remove non-working no-unit for label variables.

* Separate asserts for ruff PT018.

* Make encoding controls public API.

* Fix old label-loading tests for new chardata handling.

* Review changes, stylistic only.

* Fix test for new dataset type.

* Remove obsolete not-really-a-test.

* Odd pre-commit fixes, and autoupdate.

* Replace all use of 'CFLabelVariable.cf_label_data' with standard '_get_cf_var_data' function.

* Fix problem with lazy string writing; add tests for lazy writes.

* Test fixes.

* Make context handler error-safe.

* Define the supported encodings, and test them all.

* Fix utf-16 nchars/nbytes relation.

* Rationalise error handling + improve messages.

* Fix type constructions of EncodedDataset.groups() and similar.

* Removed obsolete reminder notes.

* Allow test_bytecoding_datasets to import netCDF4.

* Update lib/iris/fileformats/netcdf/saver.py

Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>

* Correct type wrapping existing datasets in netcdf.saver.

* Update lib/iris/fileformats/netcdf/saver.py

Update comment from review

Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>

---------

Co-authored-by: Chris Bunney <48915820+ukmo-ccbunney@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@scitools-ci scitools-ci Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Templating

This PR includes changes that may be worth sharing via templating. For each file listed below, please either:

  • Action the suggestion via a pull request editing/adding the relevant file in the SciTools/.github templates/ directory. 1
  • Raise an issue against the SciTools/.github repo for the above action if you really don't have 10mins spare right now. Include an assignee, to avoid it being forgotten.
  • Dismiss the suggestion if the changes are not suitable for templating.

You will need to dismiss this review before this PR can be merged. Recommend the reviewer does this as their final action before merging, as this text will continually update as commits come in.

Templated files

The following changed files are templated:

Footnotes

  1. Include this text in the PR body to avoid any notifications about applying the template changes back to the source repo!
    @scitools-templating: please no update notification on: iris

@pp-mo
Copy link
Copy Markdown
Member Author

pp-mo commented Jun 2, 2026

Was not really needed. Standard PR tests do the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant