-
Notifications
You must be signed in to change notification settings - Fork 283
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
iris.coords.Coord() gives me a TypeError #3967
Comments
@valeriupredoi This is now the correct behavour. The Prior to You can only create a |
@valeriupredoi Does this help? So either do: lat_coord = iris.coords.DimCoord(
np.linspace(-90.0, 90.0, 100), var_name='lat',
standard_name='latitude', long_name='latitude', units='degrees') or: lat_coord = iris.coords.AuxCoord(
np.linspace(-90.0, 90.0, 100), var_name='lat',
standard_name='latitude', long_name='latitude', units='degrees') |
terrific! Cheers muchly @bjlittle - I would encourage you to either remove it from the latest API documentation or mention this explicitily there, I looked for this and the first point of entry was the API documentation 👍 |
@valeriupredoi Will do - anything to stop confusion 👍 |
I'll keep this issue open until it's followed up with a suitable documentation change to clarify the abstract base class nature of |
great! this is a pretty well-used function and changing its behaviour should have a few bright neon lights attached to it - at least for people like me that always forget the API and consult the manual oftentimes 😁 |
@valeriupredoi This issue has been closed by #3971. The iris.coords.Coord doc-string has been updated to provide clarification that it is an abstract base class, and it is not possible to create an instance of it 👍 |
cheers @bjlittle 🍺 |
📰 Custom Issue
Hey guys, me again 😁 Silly question - I have this snippet:
and in
iris=3.0.1
gives me this malarkey:and in
iris=2.4.0
it runs a-ok, with no warnings. First off, I don't understand the warning, it seems to be pointing to a location that's got nothing to do with me 😁 Second, why is it not constructing my coordinate? Looking at the latest documentation it seems support should be as previous version? Cheers muchly in advance, as usual, for great support 🍺The text was updated successfully, but these errors were encountered: