Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Default input and output periods to Simulation constructor.
8 changes: 8 additions & 0 deletions policyengine_core/simulations/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@ def __init__(
dataset: Union[str, Type[Dataset]] = None,
reform: Reform = None,
trace: bool = False,
default_input_period: str = None,
default_calculation_period: str = None,
):
self.default_input_period = (
default_input_period or self.default_input_period
)
self.default_calculation_period = (
default_calculation_period or self.default_calculation_period
)
if tax_benefit_system is None:
if (
self.default_tax_benefit_system_instance is not None
Expand Down