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

can't assign attribute name with minus sign in the name #62

Closed
dopplershift opened this issue Feb 26, 2014 · 4 comments
Closed

can't assign attribute name with minus sign in the name #62

dopplershift opened this issue Feb 26, 2014 · 4 comments

Comments

@dopplershift
Copy link
Member

From matth.be...@gmail.com on August 04, 2010 07:50:13

What steps will reproduce the problem? 1. 2. 3. rootgrp.WEST-EAST_GRID_DIMENSION = 50 What is the expected output? What do you see instead? possibility to put minussign in attributes name What version of the product are you using? On what operating system? Version 0.8.2 Please provide any additional information below.

Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=62

@dopplershift
Copy link
Member Author

From whitaker.jeffrey@gmail.com on August 07, 2010 19:03:40

Would you mind updating to version 0.9.1 to see if this bug still exists in the newer version?

-Jeff

@dopplershift
Copy link
Member Author

From matth.be...@gmail.com on August 08, 2010 00:59:28

In fact it's not an issue.

Mean I try to assign an attribute with the method: rootgrp.WEST-EAST_GRID_DIMENSION = 5 which is unusable in this particular case.
But the method rootgrp.setncattr('WEST-EAST_GRID_DIMENSION', 5) do exactly what I need.

Feel sorry for that. It just need to read the doc carefully.

Matthieu

@dopplershift
Copy link
Member Author

From guziy.sa...@gmail.com on August 08, 2013 21:19:59

This one should be probably closed... minus sign in the code is considered as an operation, so python objects cannot have '-' in the field names...

@dopplershift
Copy link
Member Author

From whitaker.jeffrey@gmail.com on February 25, 2014 18:04:09

Status: Fixed

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

No branches or pull requests

1 participant