Skip to content

Rewrite TestRPmatrix::test_local_exceedance_imp_pass to not rely on loading data #915

@riley-brady

Description

@riley-brady

Describe the bug
Following the simple installation guide, the base unit tests currently fail (for a single test). This is a simple roundoff error failure for test_local_exceedance_imp_pass.

FAILED test_impact.py::TestRPmatrix::test_local_exceedance_imp_pass - AssertionError: 2916964966.388227 != 2916964966.388219 within 5 places (8.106231689453125e-06 difference)

To Reproduce
Steps to reproduce the behavior/error:

  1. mamba create -n climada_env -c conda-forge climada
  2. mamba activate climada_env
  3. python -m unittest climada.engine.test.test_impact

Expected behavior
Tests should pass!

Climada Version: 4.1.0

System Information (please complete the following information):

  • Operating system and version: MacOS 14.5. M3 Max chip.
  • Python version: 3.9.18

Additional context

Metadata

Metadata

Assignees

Labels

accepting pull requestContribute by raising a pull request to resolve this issue!bugtasksomething that needs to be done

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions