-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
tasksomething that needs to be donesomething that needs to be done
Description
As far as I can see, nobody reads in Centroids on their own. Reading/creating centroids is always part of reading in Hazard data (...or is it?). Therefore, I see no reason why we should keep from_ classmethods in Centroids that are not used anywhere else. I compiled a list of these methods. The following classmethods are only called by tests, and not by any other code in either Climada Core or Petals:
def from_geodataframe(cls, gdf, geometry_alias='geom'): def from_pix_bounds(cls, xf_lat, xo_lon, d_lat, d_lon, n_lat, n_lon, crs=DEF_CRS):
Can we remove them?
Metadata
Metadata
Assignees
Labels
tasksomething that needs to be donesomething that needs to be done