Skip to content

DeprecatedWarning #995

Open
Open
@emanuel-schmid

Description

@emanuel-schmid

These are the places where a DeprecatedWarnings is raised during Unit/Integration Tests:

warning module lineno
from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead. climada.engine.test.test_impact_calc 557
set_geometry_points is deprecated. Obsolete method call. As of climada 5.0, geometry points are set during object initialization climada.engine.test.test_impact_calc 576
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 32
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 36
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 59
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 60
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 66
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 67
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 50
__init__ is deprecated. This class is not supported anymore and will be removed in the next version of climada. climada.entity.tag.test.test_tag 51
from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead. climada.hazard.test.test_trop_cyclone 176
set_dist_coast is deprecated. This method is futile and will be removed in a future version. Centroids.get_dist_coast can be run without initialization. climada.hazard.test.test_trop_cyclone 177
plot_rp_intensity is deprecated. The use of Hazard.plot_rp_intensity is deprecated.Use Hazard.local_exceedance_intensity and util.plot.plot_from_gdf instead. climada.test.test_plot 114
from_lat_lon is deprecated. This method will be removed in a future version. Simply use the constructor instead. climada.util.calibrate.test.test_base 49
set_lat_lon is deprecated. latitude and longitude columns are no longer meaningful in Exposures` GeoDataFrames. They can be retrieved from Exposures.latitude and .longitude properties climada.util.lines_polys_handler 487

Those that are already 'deprecated' (not a DeprecationWarning) should have the methods/classes removed and the code cleaned up.

Those that were deprecated after climada 5.0 can stay till the next non-patch release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions