Skip to content

Commit

Permalink
update parameters dict
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Mar 20, 2023
1 parent a6d5342 commit f30e903
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions sharkfin/tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def test_macro_simulation():
SequentialPortfolioConsumerType,
WHITESHARK,
rng=np.random.default_rng(1),
num_per_type=2,
)

# arguments to attention simulation
Expand Down Expand Up @@ -143,7 +142,6 @@ def test_attention_simulation():
SequentialPortfolioConsumerType,
WHITESHARK,
rng=np.random.default_rng(1),
num_per_type=2,
)

# arguments to attention simulation
Expand Down Expand Up @@ -205,7 +203,6 @@ def test_lucas0_simulation():
SequentialPortfolioConsumerType,
LUCAS0,
rng=np.random.default_rng(1),
num_per_type=100,
)

# arguments to attention simulation
Expand Down
7 changes: 5 additions & 2 deletions simulate/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from sharkfin.population import AgentPopulation


def build_population(agent_type, parameters, num_per_type=1, rng=None, dphm=1500):
def build_population(agent_type, parameters, rng=None, dphm=1500):

num_per_type = parameters.pop("num_per_type", 1)

pop = AgentPopulation(
agent_type(), parameters, rng=rng, dollars_per_hark_money_unit=dphm
)
Expand Down Expand Up @@ -101,6 +104,6 @@ def build_population(agent_type, parameters, num_per_type=1, rng=None, dphm=1500

lucas0_parameter_dict = lucas0_agent_population_params
lucas0_parameter_dict["AgentCount"] = 10 # TODO: What should this be?

lucas0_agent_population_params["num_per_type"] = 10

LUCAS0 = lucas0_parameter_dict

0 comments on commit f30e903

Please sign in to comment.