You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* wip
* climada.entity.Exposures rewrite __init__
* wip
* climada.entity.Exposures: refactor __init__
* adaptations to changed Exposures structure: gdf.latitude and gdf.longitude have been eliminated
* adaptations to changed Exposures structure: gdf.latitude and gdf.longitude have been eliminated
* adaptations to changed Exposures structure: gdf.latitude and gdf.longitude have been eliminated
* centroids.Centroids.from_exposures() will always work as geometry column is granted
* adaptation to eliminated lat/lon columns
* hazard.Centroids: region_id and on_land are not necessarily present in the data frame
* Exposures() requires geometry or lat/lon
* cangelog
* points_to_raster function getting more complicated,
considering dataframes with geometry column instead fo lat/lon
* pydoc argument description fix
* fix typo (bug really)
* exposures: remove meta from attributes
* introduce exposures properties, region_id etc.
consequently use region_id property where applicable
* rename and use hazard_impf and hazard_centroids
* lint
* Exposures: rename pmeta property to _meta
* fix changelog
* exposures: gracefully handle empty exposures
* exposures: linting
* Update climada/entity/exposures/base.py
Co-authored-by: Samuel Juhel <[email protected]>
* petals compatibility test: try and switch the petals branch
* fix merging mistake
* deprecate set_geomety_points
* deprecate set_geomety_points
* remove properties and methods from the pydoc attributes section
* typo
* typo
* deprecate set_geomety_points
* Exposures.__init__: no need for a temporary geodataframe
as u_coord.set_df_geometry_points does not use a scheduler anymore
* Exposures.base: amend pydocs
* Exposures.base: use get_impf_column in hazard_impf
* pydoc Exposures.__init__
* pydoc Exposures.__init__
* changelog updates
* deprecate set_geomety_points
* jenkins: align with petals
* exposures tutorial: listing attributes and properties
* exposures: don't do anything in check, update Tutorial
* format
* import Impact from climada.engine.impact
in order to avoid circular imports
* avoid circular imports
* pre-commit run --all-files
* setup: DEPS_TEST update
* format all
* exposures tutorial: add information about optional columns
* clean up tutorials
---------
Co-authored-by: Samuel Juhel <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,26 @@ Code freeze date: YYYY-MM-DD
13
13
### Added
14
14
15
15
-`climada.util.interpolation` module for inter- and extrapolation util functions used in local exceedance intensity and return period functions [#930](https://github.com/CLIMADA-project/climada_python/pull/930)
- Improved scaling factors implemented in `climada.hazard.trop_cyclone.apply_climate_scenario_knu` to model the impact of climate changes to tropical cyclones [#734](https://github.com/CLIMADA-project/climada_python/pull/734)
20
29
- In `climada.util.plot.geo_im_from_array`, NaNs are plotted in gray while cells with no centroid are not plotted [#929](https://github.com/CLIMADA-project/climada_python/pull/929)
21
30
- Renamed `climada.util.plot.subplots_from_gdf` to `climada.util.plot.plot_from_gdf`[#929](https://github.com/CLIMADA-project/climada_python/pull/929)
31
+
- Exposures complete overhaul. Notably
32
+
- the _geometry_ column of the inherent `GeoDataFrame` is set up at initialization
33
+
- latitude and longitude column are no longer present there (the according arrays can be retrieved as properties of the Exposures object: `exp.latitude` instead of `exp.gdf.latitude.values`).
34
+
-`Exposures.gdf` has been renamed to `Exposures.data` (it still works though, as it is a property now pointing to the latter)
35
+
- the `check` method does not add a default "IMPF_" column to the GeoDataFrame anymore
0 commit comments