Geodels / gospl

Global Scalable Paleo Landscape Evolution Model
https://gospl.readthedocs.io
GNU General Public License v3.0
56 stars 11 forks source link

AttributeError: 'icosahedral_mesh' object has no attribute 'lpoints' #271

Closed RichardScottOZ closed 2 weeks ago

RichardScottOZ commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Install an environment, try and run bfModel notebook

Expected behavior runs

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 18
     14     grid = stripy.spherical_meshes.octahedral_mesh(include_face_points=False, 
     15                                                    refinement_levels=ref_lvl)
     17 str_fmt = "{:25} {:9}"
---> 18 print(str_fmt.format('Number of points', grid.lpoints))
     19 print(str_fmt.format('Number of cells', grid.simplices.shape[0]))
     21 # Take the unit sphere mesh and assign the Earth radius to the coordinates

AttributeError: 'icosahedral_mesh' object has no attribute 'lpoints'
RichardScottOZ commented 2 weeks ago

that object has a points attribute?

In the bug template you can probably get rid of the 'mobile' section - is anyone running this on a mobile device?

RichardScottOZ commented 2 weeks ago

presuming this is npoints?

RichardScottOZ commented 2 weeks ago

these couple of syntax things - see pull request

tristan-salles commented 2 weeks ago

Here again this is an issue related to changes in stripy library. I am now defaulting to jigsaw and will make some examples available soon!