-
Notifications
You must be signed in to change notification settings - Fork 389
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
addcyclic giving error on map + list #440
Comments
@ocefpaf, the line giving the error is one you edited 7 months ago. I don't think that edit is responsible for the problem but maybe you would have an idea of what's causing this error. |
Hmm, I tested with simple conda environments where I installed only python=3.6, numpy (latest) and either basemap 1.2.0 and 1.1.0. Things seem to have broken in 1.2.0, so it does seem like the change from 7 months ago may actually be responsible. |
I think the fix is that return list(map(_addcyclic,arr[:-1])) + [_addcyclic_lon(arr[-1])] That is, the map should be converted to a list and then added to the other list, rather than the map being added to a list and then converted to a list. I'll make a PR for this as soon as I'm able. |
Yep. I probably botched that in the |
Yes, I'll do that soon. Basemap takes awhile to clone... |
This fix leads me to another error:
Could you please give me a hand on this? |
The error is reproducible by following the steps posted in here: |
@davidmnielsen, I think you should probably open a separate issue for your error, since this one has been closed. I don't have the expertise to help you with your error myself, I'm afraid. |
Any news on that? I encounter the same issue:
After trying:
FYI: conda update basemap doesn't ensure that the according line is changed to return list(map(_addcyclic,arr[:-1])) + [_addcyclic_lon(arr[-1])] I don't know whether that's a smart thing to do, but I just changed the line by myself. Now I got this message:
|
This issue has been fixed but there hasn't been a new release of basemap since then. @WeatherGod, is there any plan for a release anytime soon? |
I am sorry, I hadn't realized that this critical fix was unreleased. I'll tag a new release now. |
Hi, can you tell me what the fix to this issue is? |
Any news about how to fix it? |
I believe this was fixed in the last release (0.18.0). We have been using https://scitools.org.uk/cartopy/docs/latest/cartopy/util/util.html#cartopy.util.add_cyclic_point successfully since that release. For example: |
The following simple test:
produces this error:
Details:
My conda environment is as follows:
The same test works fine for this environment:
So far, I haven't been able to figure out which package change is responsible, but I will investigate further.
The text was updated successfully, but these errors were encountered: