Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks in readers/writers to enforce correct types for event_name and event_id container and elements #951

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion climada/engine/cost_benefit.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from tabulate import tabulate

from climada.engine.impact_calc import ImpactCalc
from climada.engine import Impact, ImpactFreqCurve
from climada.engine.impact import Impact, ImpactFreqCurve

LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion climada/engine/impact_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import geopandas as gpd

from climada import CONFIG
from climada.engine import Impact
from climada.engine.impact import Impact

LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion climada/engine/unsequa/calc_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import numpy as np

from climada.util.value_representation import sig_dig as u_sig_dig
from climada.engine.unsequa import UncOutput
from climada.engine.unsequa.unc_output import UncOutput

LOGGER = logging.getLogger(__name__)

Expand Down
6 changes: 3 additions & 3 deletions climada/engine/unsequa/calc_cost_benefit.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@

from typing import Optional, Union
import pandas as pd
import numpy as np
import pathos.multiprocessing as mp
# use pathos.multiprocess fork of multiprocessing for compatibility
# wiht notebooks and other environments https://stackoverflow.com/a/65001152/12454103

from climada.engine.cost_benefit import CostBenefit
from climada.engine.unsequa import Calc, InputVar, UncCostBenefitOutput
from climada.engine.unsequa.calc_base import _sample_parallel_iterator, _multiprocess_chunksize, _transpose_chunked_data
from climada.engine.unsequa.input_var import InputVar
from climada.engine.unsequa.unc_output import UncCostBenefitOutput
from climada.engine.unsequa.calc_base import Calc, _sample_parallel_iterator, _multiprocess_chunksize, _transpose_chunked_data
from climada.util import log_level
from climada.hazard import Hazard
from climada.entity import Entity
Expand Down
4 changes: 3 additions & 1 deletion climada/engine/unsequa/calc_delta_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
# wiht notebooks and other environments https://stackoverflow.com/a/65001152/12454103

from climada.engine import ImpactCalc
from climada.engine.unsequa import Calc, InputVar, UncImpactOutput
from climada.engine.unsequa.input_var import InputVar
from climada.engine.unsequa.unc_output import UncImpactOutput
from climada.engine.unsequa.calc_base import (
Calc,
_sample_parallel_iterator,
_multiprocess_chunksize,
_transpose_chunked_data,
Expand Down
4 changes: 3 additions & 1 deletion climada/engine/unsequa/calc_impact.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
# wiht notebooks and other environments https://stackoverflow.com/a/65001152/12454103

from climada.engine import ImpactCalc
from climada.engine.unsequa import Calc, InputVar, UncImpactOutput
from climada.engine.unsequa.input_var import InputVar
from climada.engine.unsequa.unc_output import UncImpactOutput
from climada.engine.unsequa.calc_base import (
Calc,
_sample_parallel_iterator,
_multiprocess_chunksize,
_transpose_chunked_data,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
DEPS_TEST = [
"ipython",
"mccabe>=0.6",
"pylint==2.7.1",
"pylint>=3.0",
"pytest",
"pytest-cov",
"pytest-subtests",
Expand Down