Skip to content

Commit

Permalink
Versioning and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Dec 26, 2023
1 parent c9d7f7b commit 6b6f764
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- bump: patch
changes:
fixed:
- Randomness issue.
- bump: minor
changed:
added:
- API ID to reform object functionality.
9 changes: 4 additions & 5 deletions policyengine_core/reforms/reform.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def apply(self):
reform.name = name

return reform

@staticmethod
def from_api(
api_id: str,
Expand Down Expand Up @@ -180,7 +180,6 @@ def apply(self):

return reform

Check warning on line 181 in policyengine_core/reforms/reform.py

View check run for this annotation

Codecov / codecov/patch

policyengine_core/reforms/reform.py#L181

Added line #L181 was not covered by tests


@classproperty
def api_id(self):
if self.country_id is None:
Expand Down Expand Up @@ -222,13 +221,13 @@ def set_parameter(
stop: str = None,
return_modifier=False,
) -> Reform:

if stop is not None:
stop = instant_(stop)

Check warning on line 226 in policyengine_core/reforms/reform.py

View check run for this annotation

Codecov / codecov/patch

policyengine_core/reforms/reform.py#L226

Added line #L226 was not covered by tests

if start is not None:
start = instant_(start)

Check warning on line 229 in policyengine_core/reforms/reform.py

View check run for this annotation

Codecov / codecov/patch

policyengine_core/reforms/reform.py#L229

Added line #L229 was not covered by tests

if isinstance(path, Parameter):
path = path.name

Expand Down

0 comments on commit 6b6f764

Please sign in to comment.