Skip to content

TypeError: HealpyGridInfo.__init__() got an unexpected keyword argument 'nside' #7

@tinaok

Description

@tinaok

Issue Description:

I encountered an issue in the create_grid function of the xarray-healpy project. When executing the code block below in the healpix_regrid.ipynb notebook, I encountered a TypeError:


grid = create_grid(nside=nside, rot=rot)
grid

The error message is as follows:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File <timed exec>:1

File ~/xarray-healpy/xarray_healpy/grid.py:218, in create_grid(nside, rot)
    217 def create_grid(nside, rot={"lat": 0, "lon": 0}):
--> 218     return HealpyGridInfo(nside=nside, rot=rot)

TypeError: HealpyGridInfo.__init__() got an unexpected keyword argument 'nside'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions