Skip to content

Commit

Permalink
removing breakpoint from code! removing some tests for speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Feb 8, 2024
1 parent 1ae8307 commit 39a0eb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions sharkfin/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,6 @@ def class_stat_column_to_dict(clabel):
sim_stats["rpp_min"] = min(rp_process)
sim_stats["rpp_max"] = max(rp_process)

import pdb; pdb.set_trace()

return sim_stats


Expand Down
5 changes: 4 additions & 1 deletion sharkfin/tests/test_population.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_lucas_agent_population():

pop.create_distributed_agents()
pop.create_database()
### why is this taking forever?
pop.solve_distributed_agents()

pop.solve(merge_by=parameter_dict["ex_post"]) # merge_by=["RiskyAvg", "RiskyStd"])
Expand All @@ -37,8 +38,9 @@ def test_lucas_agent_population():

return pop


'''
def test_whiteshark_agent_population():
import pdb; pdb.set_trace()
seed = 14
# Initializing an Agent Population
Expand Down Expand Up @@ -112,6 +114,7 @@ def test_whiteshark_agent_population():
after = agent.solution[0].ShareFuncAdj(10)
assert np.allclose(before, after)
'''


def test_random_seeds():
Expand Down
8 changes: 5 additions & 3 deletions sharkfin/tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_series_simulation():

## MACRO SIMULATIONS


'''
def test_macro_simulation():
"""
Sets up and runs an simulation with an agent population.
Expand Down Expand Up @@ -130,8 +130,9 @@ def test_macro_simulation():
data = attsim.daily_data()
assert len(data["prices"]) == 30
'''


'''
def test_attention_simulation():
"""
Sets up and runs an agent population simulation
Expand Down Expand Up @@ -172,6 +173,7 @@ def test_attention_simulation():
attsim.daily_data()["sell_macro"]
import pdb; pdb.set_trace()
sim_stats = attsim.sim_stats()
assert attsim.days_per_quarter == days_per_quarter
Expand All @@ -192,7 +194,7 @@ def test_attention_simulation():
ror_mean_2 = attsim.ror_mean()
assert ror_mean_1 == approx(ror_mean_2)

'''

def test_lucas0_simulation():
"""
Expand Down

0 comments on commit 39a0eb4

Please sign in to comment.