diff options
Diffstat (limited to 'python/intex_scenarios.py')
| -rw-r--r-- | python/intex_scenarios.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/intex_scenarios.py b/python/intex_scenarios.py index 273b9c96..49fb7067 100644 --- a/python/intex_scenarios.py +++ b/python/intex_scenarios.py @@ -55,8 +55,7 @@ def get_reinv_assets(dealname, date): d['REINV_TBA2'] = line['Fixed or Float']
return d
-# for dealname in ["abcl071", "ammcclo5", "atr4cdo", "atr5cdo", "blumt3", "callid6", "goldl5", "limes", "oceant2", "symph4"]:
-for dealname in ["abcl071", "ammcclo5"]:
+for dealname in ["abcl071", "ammcclo5", "atr4cdo", "atr5cdo", "blumt3", "callid6", "goldl5", "limes", "oceant2", "symph4"]:
cursor.execute('SELECT \"Reinv End Date\" from latest_clo_universe where dealname=%s', (dealname,))
reinvenddate = cursor.fetchone()[0]
if reinvenddate:
@@ -126,7 +125,7 @@ for dealname in ["abcl071", "ammcclo5"]: fh2.write(line)
continue
if pattern5.match(line):
- if not reinv_assets['REINV_TBA1']:
+ if not reinv_assets['REINV_TBA2']:
line = re.sub(pattern5, r"\1{0}\2{1}", line).format(dealname.upper(), 100)
elif reinv_assets['REINV_TBA1'] == 'Fixed':
line = re.sub(pattern5, r"\1{0}\2{1}", line).format(dealname.upper(), reinvfixedpercentage)
|
