pik-copan / pyunicorn

Unified Complex Network and Recurrence Analysis Toolbox
http://pik-potsdam.de/~donges/pyunicorn/
Other
195 stars 86 forks source link

cannot import GeoGrid #169

Closed rimajj closed 1 year ago

rimajj commented 1 year ago

When trying to import GeoGrid class my IDE tells me "Cannot find reference 'geo_grid' in 'init.py | init.py' ". I tried to import like this: from pyunicorn.core.geo_grid import GeoGrid

pyunicorn version: 0.6.1

How can I fix this?

Best regards

zugnachpankow commented 1 year ago

Hey @rimajj,

does this only happen with the GeoGrid class? In a quick check on my system the import worked fine.

rimajj commented 1 year ago

Hi @zugnachpankow, Thanks for your quick answer. Although I am not quite sure what is going on with my IDE, I think this issue can be closed. I tried all Classes imported in core.init.py and this message only occurred with GeoGrid and SpatialNetwork. However, despite of telling me that GeoGrid is an unresolved reference, I am able to use the class in my program. Even stranger, in a different program using the same env and pyunicorn version, GeoGrid can be imported without the "Cannot find reference 'geo_grid' in 'init.py | init.py' " message.