Skip to content

Commit

Permalink
linting applied
Browse files Browse the repository at this point in the history
  • Loading branch information
pearsonca committed Nov 13, 2024
1 parent 7ba97ce commit dd9c00f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from . import helpers
from .base import NPIBase


class MultiPeriodModifier(NPIBase):
def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from . import helpers
from .base import NPIBase


class SinglePeriodModifier(NPIBase):
def __init__(
self,
Expand Down
3 changes: 2 additions & 1 deletion flepimop/gempyor_pkg/src/gempyor/NPI/StackedModifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def __init__(

sub_npi = NPIBase.execute(
npi_config=scenario_npi_config,
modinf_ti=modinf_ti, modinf_tf=modinf_tf,
modinf_ti=modinf_ti,
modinf_tf=modinf_tf,
modifiers_library=modifiers_library,
subpops=subpops,
loaded_df=loaded_df,
Expand Down
1 change: 1 addition & 0 deletions flepimop/gempyor_pkg/src/gempyor/NPI/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import abc
import datetime


class NPIBase(abc.ABC):
__plugins__ = {}

Expand Down
3 changes: 2 additions & 1 deletion flepimop/gempyor_pkg/src/gempyor/dev/dev_seir.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down
3 changes: 2 additions & 1 deletion flepimop/gempyor_pkg/src/gempyor/outcomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def build_outcome_modifiers(

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_outcomes,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.outcome_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
loaded_df=loaded_df,
Expand Down
7 changes: 3 additions & 4 deletions flepimop/gempyor_pkg/src/gempyor/seir.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,12 @@ def build_npi_SEIR(

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
loaded_df=loaded_df,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method[
"sum"
],
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
pnames_overlap_operation_reductionprod=modinf.parameters.stacked_modifier_method[
"reduction_product"
],
Expand Down
24 changes: 16 additions & 8 deletions flepimop/gempyor_pkg/tests/seir/test_seir.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def test_constant_population_legacy_integration():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -157,7 +158,8 @@ def test_constant_population_rk4jit_integration_fail():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -233,7 +235,8 @@ def test_constant_population_rk4jit_integration():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -307,7 +310,8 @@ def test_steps_SEIR_nb_simple_spread_with_txt_matrices():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -415,7 +419,8 @@ def test_steps_SEIR_nb_simple_spread_with_csv_matrices():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -493,7 +498,8 @@ def test_steps_SEIR_no_spread():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -767,7 +773,8 @@ def test_parallel_compartments_with_vacc():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down Expand Up @@ -860,7 +867,8 @@ def test_parallel_compartments_no_vacc():

npi = NPI.NPIBase.execute(
npi_config=modinf.npi_config_seir,
modinf_ti=modinf.ti, modinf_tf=modinf.tf,
modinf_ti=modinf.ti,
modinf_tf=modinf.tf,
modifiers_library=modinf.seir_modifiers_library,
subpops=modinf.subpop_struct.subpop_names,
pnames_overlap_operation_sum=modinf.parameters.stacked_modifier_method["sum"],
Expand Down

0 comments on commit dd9c00f

Please sign in to comment.