Skip to content

Commit

Permalink
fixing type conversions of inputs from command line, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Jun 27, 2022
1 parent 7110662 commit 2d5fb82
Show file tree
Hide file tree
Showing 2 changed files with 330 additions and 20 deletions.
326 changes: 318 additions & 8 deletions simulate/Visualize Sim.ipynb

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions simulate/run_whiteshark.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,25 @@ def env_param(name, default):
args = parser.parse_args()

# General simulation arguments
seed = args.seed
popn = args.popn
quarters = args.quarters
runs = args.runs
seed = int(args.seed)
popn = int(args.popn)
quarters = int(args.quarters)
runs = int(args.runs)

# General market arguments
# TODO market_type: MockMarket # this determines which Market class to use.
dividend_growth_rate = args.dividend_growth_rate
dividend_std = args.dividend_std
dividend_growth_rate = float(args.dividend_growth_rate)
dividend_std = float(args.dividend_std)

# Specific to AttentionSimulation
attention = args.attention
dphm = args.dphm
attention = float(args.attention)
dphm = int(args.dphm)

# Memory-based FinanceModel arguments
p1 = args.p1
p2 = args.p2
d1 = args.d1
d2 = args.d2
p1 = float(args.p1)
p2 = float(args.p2)
d1 = float(args.d1)
d2 = float(args.d2)

# Specific to RabbitMQ AMMPS Market
host = args.rhost
Expand Down

0 comments on commit 2d5fb82

Please sign in to comment.