diff options
Diffstat (limited to 'python/load_cf.py')
| -rw-r--r-- | python/load_cf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/load_cf.py b/python/load_cf.py index ca4c1fb5..0b998863 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-{0}.RData".format(date.strftime("%Y-%m-%d")))
+ "marketdata-{%Y-%m-%d}.RData".format(date))
dist = ro.r.load(distfile)
return {"L": np.array(dist[0]),"R": np.array(dist[1])}
|
