From aaae1a2304ac75925be743c1a2288a3a3fe0e72a Mon Sep 17 00:00:00 2001 From: SylviaDu99 Date: Fri, 20 Sep 2024 16:22:21 -0700 Subject: [PATCH] minor: rename sim_macro_cache.py to simulation_macro_cache.py fixes: issue #265 --- changelog_entry.yaml | 4 ++++ policyengine_core/simulations/simulation.py | 4 +++- .../{sim_macro_cache.py => simulation_macro_cache.py} | 0 tests/core/test_simulations.py | 4 +++- 4 files changed, 10 insertions(+), 2 deletions(-) rename policyengine_core/simulations/{sim_macro_cache.py => simulation_macro_cache.py} (100%) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb..2b8cdbebe 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + changed: + - Renamed sim_macro_cache.py to simulation_macro_cache.py diff --git a/policyengine_core/simulations/simulation.py b/policyengine_core/simulations/simulation.py index 08dfdb3df..9b3ec3f8b 100644 --- a/policyengine_core/simulations/simulation.py +++ b/policyengine_core/simulations/simulation.py @@ -34,7 +34,9 @@ from policyengine_core.variables import Variable, QuantityType from policyengine_core.reforms.reform import Reform from policyengine_core.parameters import get_parameter -from policyengine_core.simulations.sim_macro_cache import SimulationMacroCache +from policyengine_core.simulations.simulation_macro_cache import ( + SimulationMacroCache, +) class Simulation: diff --git a/policyengine_core/simulations/sim_macro_cache.py b/policyengine_core/simulations/simulation_macro_cache.py similarity index 100% rename from policyengine_core/simulations/sim_macro_cache.py rename to policyengine_core/simulations/simulation_macro_cache.py diff --git a/tests/core/test_simulations.py b/tests/core/test_simulations.py index 087275bb4..9a9c5f632 100644 --- a/tests/core/test_simulations.py +++ b/tests/core/test_simulations.py @@ -1,6 +1,8 @@ from policyengine_core.country_template.situation_examples import single from policyengine_core.simulations import SimulationBuilder -from policyengine_core.simulations.sim_macro_cache import SimulationMacroCache +from policyengine_core.simulations.simulation_macro_cache import ( + SimulationMacroCache, +) import importlib.metadata import numpy as np from pathlib import Path