diff options
Diffstat (limited to 'python/intex_scenarios.py')
| -rw-r--r-- | python/intex_scenarios.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/intex_scenarios.py b/python/intex_scenarios.py index dd3b2987..aa14c823 100644 --- a/python/intex_scenarios.py +++ b/python/intex_scenarios.py @@ -18,7 +18,7 @@ elif os.name == 'posix': input = os.path.join(root, "Scenarios", "prometheus.sss")
pattern11 = re.compile("(REINVEST\[)\w+(::REINV_TBA1\]\[DEAL,1\]=)(.*$)")
-pattern12 = re.compile("(REINVEST\[)\w+(::REINV_TBA2\]\[DEAL,2\]=)(.*$)")
+pattern12 = re.compile("(REINVEST\[)\w+(::REINV_TBA2\]\[DEAL,1\]=)(.*$)")
# reinv end date
pattern2 = re.compile("(STANDARD_VAR\[)\w+(::#REINV_END,\d+\]=)(\d*$)")
# reinvprices float
@@ -135,7 +135,6 @@ for dealname in ["abcl071", "ammcclo5", "atr4cdo", "atr5cdo", "blumt3", "callid6 line = re.sub(pattern6, r"\1{0}\2{1}", line).format(dealname.upper(), reinvfloatpercentage)
elif reinv_assets['REINV_TBA2'] == 'Fixed':
line = re.sub(pattern6, r"\1{0}\2{1}", line).format(dealname.upper(), reinvfixedpercentage)
- line = re.sub(pattern6, r"\1{0}\2{1}", line).format(dealname.upper(), reinvfloatpercentage)
fh2.write(line)
continue
if pattern7.search(line):
|
