Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in Simulation class #261

Merged
merged 1 commit into from
Sep 2, 2024
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: 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
Loading