Skip to content

Commit

Permalink
Merge pull request #261 from anth-volk/fix/260-no-dataset
Browse files Browse the repository at this point in the history
Syntax error in Simulation class
  • Loading branch information
MaxGhenis authored Sep 2, 2024
2 parents 47172f9 + a03c374 commit bb4919f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Syntax error in Simulation class
8 changes: 3 additions & 5 deletions policyengine_core/simulations/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,11 +1418,9 @@ def check_macro_cache(self, variable_name: str, period: str) -> bool:
"""
Check if the variable is able to have cached value
"""
if (
hasattr(self, "dataset")
and self.dataset.data_format == Dataset.FLAT_FILE
):
return False
if hasattr(self, "dataset"):
if self.dataset.data_format == Dataset.FLAT_FILE:
return False

if self.is_over_dataset:
return True
Expand Down

0 comments on commit bb4919f

Please sign in to comment.