diff --git a/changelog_entry.yaml b/changelog_entry.yaml index a873fd3d..ad30ef6c 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -1,4 +1,4 @@ -- bump: patch - changes: - fixed: - - Randomness issue. +- bump: minor + changed: + added: + - API ID to reform object functionality. diff --git a/policyengine_core/reforms/reform.py b/policyengine_core/reforms/reform.py index b9af81cc..3b19ac6a 100644 --- a/policyengine_core/reforms/reform.py +++ b/policyengine_core/reforms/reform.py @@ -142,7 +142,7 @@ def apply(self): reform.name = name return reform - + @staticmethod def from_api( api_id: str, @@ -180,7 +180,6 @@ def apply(self): return reform - @classproperty def api_id(self): if self.country_id is None: @@ -222,13 +221,13 @@ def set_parameter( stop: str = None, return_modifier=False, ) -> Reform: - + if stop is not None: stop = instant_(stop) - + if start is not None: start = instant_(start) - + if isinstance(path, Parameter): path = path.name