Skip to content

Commit

Permalink
Fix ex_ante parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flix6x committed Feb 8, 2021
1 parent ca6a607 commit 62d7ace
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,7 +18,7 @@
depends_on = None

# set default parameters for the two default knowledge horizon functions
ex_ante_default_par = {knowledge_horizons.ex_ante.__code__.co_varnames[1]: "PT0H"}
ex_ante_default_par = {knowledge_horizons.ex_ante.__code__.co_varnames[0]: "PT0H"}
ex_post_default_par = {knowledge_horizons.ex_post.__code__.co_varnames[1]: "PT0H"}


Expand Down Expand Up @@ -84,7 +84,7 @@ def upgrade():
"knowledge_horizon_par",
sa.JSON(),
nullable=True,
default={knowledge_horizons.ex_ante.__code__.co_varnames[1]: "PT0H"},
default=ex_ante_default_par,
),
)
op.execute(
Expand Down

0 comments on commit 62d7ace

Please sign in to comment.