Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider string-like data equal despite different data type #172

Open
sadielbartholomew opened this issue Jan 21, 2022 · 0 comments
Open

Comments

@sadielbartholomew
Copy link
Member

To implement the changed behaviour agreed to be appropriate for Data.equals and non-numeric array inputs in the mini-thread NCAS-CMS/cf-python#254 (comment), both for cfdm itself and as passed downstream to cf-python. Namely:

we should allow any two string-like data types to be equal

noting this is (knowingly) in contrast to the behaviour we have chosen for numeric data, where different (numeric) data types will be considered unequal, even if the same data is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant