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

Exception thrown running example code for NRCS #2

Open
tdrobbin opened this issue Jun 15, 2019 · 3 comments
Open

Exception thrown running example code for NRCS #2

tdrobbin opened this issue Jun 15, 2019 · 3 comments
Assignees
Labels

Comments

@tdrobbin
Copy link

Hello! I installed obsio in a new conda environment according to the instructions in the readme, and tried running the NRCS example snipped but got the following exception:

Screen Shot 2019-06-15 at 12 08 48 AM

I tried making the following modification at line 631 in /obsio/providers/nrcs.py but, it seems not to be fixing the issue.

#         self._elem_funcs = np.unique(np.array([_ELEM_EXTRACT_FUNCS[a_elem] for
#                                                a_elem in self.elems]))

    self._elem_funcs = np.array([_ELEM_EXTRACT_FUNCS[a_elem] for
                                           a_elem in np.unique(self.elems)])

Any help would be greatly appreciated. Also thank you for your work on a fantastic tool!

@brobertspierel
Copy link

I am having the same issue. Thanks for developing this!

@jaredwo jaredwo self-assigned this Jun 18, 2019
@jaredwo
Copy link
Owner

jaredwo commented Jun 18, 2019

Thanks for submitting this. Glad to hear that obsio is being used! The package was originally developed ~ 2015 under Python 2 and hasn't received much maintenance except for minor changes to migrate to Python 3. This is likely an overlooked Python 2 vs 3 issue. Python 3 has more strict rules for comparisons. I'll take a look.

@jaredwo
Copy link
Owner

jaredwo commented Jun 19, 2019

Fixed, but this reveals another NRCS Python 3 migration issue upstream in suds. Referencing
#3 .

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

No branches or pull requests

3 participants