pypsa-meets-earth / pypsa-earth-sec

GNU General Public License v3.0
20 stars 18 forks source link

Deprecated grid_cells function in atlite #195

Closed davide-f closed 1 year ago

davide-f commented 1 year ago

Checklist

Describe the Bug

With the latest version of atlite, the deprecated cutout.grid_cells() is no more available and this creates problem in build_population_layouts

Error Message

If applicable, paste any terminal output to help illustrating your problem. In some cases it may also be useful to share your list of installed packages: conda list.

INFO:snakemake.logging:1 of 20 steps (5%) done
Traceback (most recent call last):
  File "/data/davidef/git_pma/pypsa-earth-sec/.snakemake/scripts/tmpou7fp6xu.build_population_layouts.py", line 30, in <module>
    grid_cells = cutout.grid_cells()
AttributeError: 'Cutout' object has no attribute 'grid_cells'