Skip to content

Improve handling of diverse coordinate datatypes#121

Merged
lukelbd merged 4 commits into
masterfrom
support-cftime
Feb 10, 2020
Merged

Improve handling of diverse coordinate datatypes#121
lukelbd merged 4 commits into
masterfrom
support-cftime

Conversation

@lukelbd
Copy link
Copy Markdown
Collaborator

@lukelbd lukelbd commented Feb 10, 2020

Resolves #103. This bug was caused by my standardize_1d and standardize_2d functions, which automatically applied IndexFormatter when they detected coordinate arrays of the 'object' datatype (while this usually implies strings, it turns out cftime arrays are also of 'object' datatype).

I am now more careful about how the standardize functions handle coordinates. The IndexFormatter is applied only for string arrays, and the centers-to-edges and edges-to-centers functions only work with numeric (non-datetime, non-string) coordinates.

@lukelbd lukelbd changed the title Better standardize_1d/standardize_2d handling of diverse coordinate datatypes Improve standardize_[12]d handling of diverse coordinate datatypes Feb 10, 2020
@lukelbd lukelbd merged commit f7b37fe into master Feb 10, 2020
@lukelbd lukelbd deleted the support-cftime branch February 10, 2020 23:46
@lukelbd lukelbd changed the title Improve standardize_[12]d handling of diverse coordinate datatypes Improve handling of diverse coordinate datatypes Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support rendering of cftime time axes

1 participant