Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2024
1 parent a51775e commit 354507d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
18 changes: 15 additions & 3 deletions src/_gettsim/functions/derived_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,22 @@ def __init__(
):
super().__init__(
function,
module_name=derived_from.module_name if isinstance(derived_from, PolicyFunction) else "",
module_name=(
derived_from.module_name
if isinstance(derived_from, PolicyFunction)
else ""
),
function_name=function_name,
start_date=derived_from.start_date if isinstance(derived_from, PolicyFunction) else None,
end_date=derived_from.end_date if isinstance(derived_from, PolicyFunction) else None,
start_date=(
derived_from.start_date
if isinstance(derived_from, PolicyFunction)
else None
),
end_date=(
derived_from.end_date
if isinstance(derived_from, PolicyFunction)
else None
),
params_key_for_rounding=None,
skip_vectorization=True,
)
Expand Down
8 changes: 6 additions & 2 deletions src/_gettsim/time_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def create_time_conversion_functions(
result.update(
{
der_name: der_func
for der_name, der_func in _create_time_conversion_functions(name, func).items()
for der_name, der_func in _create_time_conversion_functions(
name, func
).items()
if der_name not in functions and der_name not in data_cols
}
)
Expand All @@ -291,7 +293,9 @@ def create_time_conversion_functions(
result.update(
{
der_name: der_func
for der_name, der_func in _create_time_conversion_functions(name).items()
for der_name, der_func in _create_time_conversion_functions(
name
).items()
if der_name not in data_cols
}
)
Expand Down

0 comments on commit 354507d

Please sign in to comment.