Skip to content

new approach unsing under and bad in cmap #888

new approach unsing under and bad in cmap

new approach unsing under and bad in cmap #888

GitHub Actions / Core / Unit Test Results (3.11) failed Aug 8, 2024 in 0s

2 fail, 688 pass in 8m 23s

690 tests  ±0   688 ✅  - 2   8m 23s ⏱️ -19s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     2 ❌ +2 

Results for commit aa4d378. ± Comparison against earlier commit 4ec6841.

Annotations

Check warning on line 0 in climada.util.test.test_plot.TestPlots

See this annotation in the file changed.

@github-actions github-actions / Core / Unit Test Results (3.11)

test_plot_from_gdf_log (climada.util.test.test_plot.TestPlots) failed

tests_xml/tests.xml [took 4s]
Raw output
AssertionError: 'Threshold Intensity: 10.0 m/s' != 'Threshold Intensity: 20.0 m/s'
- Threshold Intensity: 10.0 m/s
?                      ^
+ Threshold Intensity: 20.0 m/s
?                      ^
self = <climada.util.test.test_plot.TestPlots testMethod=test_plot_from_gdf_log>

    def test_plot_from_gdf_log(self):
        """test plot_from_gdf() with log color bar)"""
        return_periods = gpd.GeoDataFrame(
            data = ((2., 5.), (3., 6.), (None, 2.), (1., 1000.)),
            columns = ('10.0', '20.0')
        )
        return_periods['geometry'] = (Point(45., 26.), Point(46., 26.), Point(45., 27.), Point(46., 27.))
        colorbar_name = 'Return Periods (Years)'
        title_subplots = lambda cols: [f'Threshold Intensity: {col} m/s' for col in cols]
        (axis1, axis2) = u_plot.plot_from_gdf(
            return_periods,
            colorbar_name=colorbar_name,
            title_subplots=title_subplots)
>       self.assertEqual('Threshold Intensity: 10.0 m/s', axis1.get_title())
E       AssertionError: 'Threshold Intensity: 10.0 m/s' != 'Threshold Intensity: 20.0 m/s'
E       - Threshold Intensity: 10.0 m/s
E       ?                      ^
E       + Threshold Intensity: 20.0 m/s
E       ?                      ^

climada/util/test/test_plot.py:185: AssertionError

Check warning on line 0 in climada.util.test.test_plot.TestPlots

See this annotation in the file changed.

@github-actions github-actions / Core / Unit Test Results (3.11)

test_plot_from_gdf_no_log (climada.util.test.test_plot.TestPlots) failed

tests_xml/tests.xml [took 3s]
Raw output
AssertionError: 'Threshold Intensity: 10.0 m/s' != 'Threshold Intensity: 20.0 m/s'
- Threshold Intensity: 10.0 m/s
?                      ^
+ Threshold Intensity: 20.0 m/s
?                      ^
self = <climada.util.test.test_plot.TestPlots testMethod=test_plot_from_gdf_no_log>

    def test_plot_from_gdf_no_log(self):
        """test plot_from_gdf() with linear color bar (because there is a 0 in data)"""
        return_periods = gpd.GeoDataFrame(
            data = ((2., 5.), (0., 6.), (None, 2.), (1., 1000.)),
            columns = ('10.0', '20.0')
        )
        return_periods['geometry'] = (Point(45., 26.), Point(46., 26.), Point(45., 27.), Point(46., 27.))
        colorbar_name = 'Return Periods (Years)'
        title_subplots = lambda cols: [f'Threshold Intensity: {col} m/s' for col in cols]
        (axis1, axis2) = u_plot.plot_from_gdf(
            return_periods,
            colorbar_name=colorbar_name,
            title_subplots=title_subplots)
>       self.assertEqual('Threshold Intensity: 10.0 m/s', axis1.get_title())
E       AssertionError: 'Threshold Intensity: 10.0 m/s' != 'Threshold Intensity: 20.0 m/s'
E       - Threshold Intensity: 10.0 m/s
E       ?                      ^
E       + Threshold Intensity: 20.0 m/s
E       ?                      ^

climada/util/test/test_plot.py:168: AssertionError