Skip to content

Commit

Permalink
Final changes to MonteCarloCore.py and mc_lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
boatjones authored Mar 8, 2023
1 parent 66a1849 commit 8da3e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MonteCarloCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# window size
window_width = 600
window_height = 500
window_height = 350

# get overall screen size and center window initially
screen_width = root.winfo_screenwidth()
Expand Down
3 changes: 2 additions & 1 deletion mc_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def chart_perf(ticker_lst):
# function behind button to run monte carlo simulation - couldn't resist the name
def mc_hammer(ticker_lst):
# remove any previous result set
os.remove("mc.pickle")
if os.path.exists("mc.pickle"):
os.remove("mc.pickle")

# prepare 5-year portfolio from ticker list
port = port_prep(ticker_lst)
Expand Down

0 comments on commit 8da3e0e

Please sign in to comment.