Skip to content
Open
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
10 changes: 10 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": {
"marketplaces": [
"PolicyEngine/policyengine-claude"
],
"auto_install": [
"country-models@policyengine-claude"
]
}
}
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:
changed:
- Added policyengine-claude plugin auto-install configuration.
1 change: 0 additions & 1 deletion policyengine_core/charts/formatting.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import plotly.graph_objects as go
from IPython.display import HTML


GREEN = "#29d40f"
LIGHT_GREEN = "#C5E1A5"
DARK_GREEN = "#558B2F"
Expand Down
8 changes: 2 additions & 6 deletions policyengine_core/populations/population.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,13 @@ def check_period_validity(
if period is None:
stack = traceback.extract_stack()
filename, line_number, function_name, line_of_code = stack[-3]
raise ValueError(
"""
raise ValueError("""
You requested computation of variable "{}", but you did not specify on which period in "{}:{}":
{}
When you request the computation of a variable within a formula, you must always specify the period as the second parameter. The convention is to call this parameter "period". For example:
computed_salary = person('salary', period).
See more information at <https://openfisca.org/doc/coding-the-legislation/35_periods.html#periods-in-variable-definition>.
""".format(
variable_name, filename, line_number, line_of_code
)
)
""".format(variable_name, filename, line_number, line_of_code))

def __call__(
self,
Expand Down