Skip to content

Commit

Permalink
using uuid in sim name
Browse files Browse the repository at this point in the history
  • Loading branch information
akirillo committed Oct 15, 2021
1 parent 53a8f5f commit 004120d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import csv
import os
import sys
import uuid
from copy import deepcopy
import numpy as np
from pydss.pymaker.numeric import Wad, Rad
Expand Down Expand Up @@ -90,7 +91,7 @@ def sweep(param_paths, init_parameters):
fieldnames = ['WETH_price', 'gas_price_gwei', 'num_new_barks', 'num_sales_taken', 'incentive_amount', 'num_unsafe_vaults', 'auction_debt', 'avg_time_to_liquidation']

for i, DutchAuctionsSim in enumerate(DutchAuctionsSims):
sim_name = f"DutchAuctions_{timeframe}_{i}_{}"
sim_name = f"DutchAuctions_{timeframe}_{i}_{uuid.uuid4()}"
filename = f"/bab-stablesims/experiments/dutch_auctions/results/05-19-2021/{sim_name}.csv"
with open(filename, mode='w') as csv_file:
writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
Expand Down

0 comments on commit 004120d

Please sign in to comment.