aboutsummaryrefslogtreecommitdiffstats
path: root/python/load_cf.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/load_cf.py')
-rw-r--r--python/load_cf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/load_cf.py b/python/load_cf.py
index 0b998863..3eb5a20f 100644
--- a/python/load_cf.py
+++ b/python/load_cf.py
@@ -65,7 +65,7 @@ def get_configfile(dealname, tradedate):
def get_dist(date):
distfile = os.path.join(root, "Scenarios", "Calibration",
- "marketdata-{%Y-%m-%d}.RData".format(date))
+ "marketdata-{0:%Y-%m-%d}.RData".format(date))
dist = ro.r.load(distfile)
return {"L": np.array(dist[0]),"R": np.array(dist[1])}