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

Error when initializing the model #41

Open
kpmercier opened this issue Jul 29, 2024 · 0 comments
Open

Error when initializing the model #41

kpmercier opened this issue Jul 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kpmercier
Copy link

kpmercier commented Jul 29, 2024

Environment Information

  • spaceprime version: 0.0.3
  • Python version: 3.8.10
  • Operating System: Ubuntu 20.04.5 LTS

Description

I am following the tutorial and get an error when initializing the model. I tried this step after installing the stable release and from source.

What I Did

>>> import spaceprime                                                            
>>> from spaceprime import analysis                                              
>>> import spaceprime as sp                                                      
>>> import geopandas as gpd                                                      
>>> import rasterio                                                              
>>> r = rasterio.open("projections.tif")                                         
>>> locs = gpd.read_file("https://raw.githubusercontent.com/connor-french/spaceprime/main/spaceprime/data/localities.geojson")
>>> d = sp.raster_to_demes(r, transformation="linear", max_local_size=1000)      
>>> demo = sp.spDemography()
               Traceback (most recent call last):
               File "<stdin>", line 1, in <module>
               AttributeError: module 'spaceprime' has no attribute 'spDemography'
@kpmercier kpmercier added the bug Something isn't working label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant