File tree Expand file tree Collapse file tree
OREAnalytics-SWIG/Python/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ def setUp(self):
2727 if row is None or len (row ) == 0 or row [0 ][0 ]== "#" :
2828 continue
2929 marketdatum = row [1 ].split ('/' )
30- if marketdatum [1 ] == 'FX' and marketdatum [2 ] == 'RATE' :
31- tmp = marketdatum [1 ] + marketdatum [2 ] + marketdatum [4 ] + marketdatum [3 ]
30+ if marketdatum [0 ] == 'FX' and marketdatum [1 ] == 'RATE' :
31+ tmp = marketdatum [0 ] + '/' + marketdatum [1 ] + '/' + marketdatum [3 ] + '/' + marketdatum [2 ]
3232 if any (d ['Date' ] == self .asofDate and d ['Name' ] == tmp for d in marketdata ):
33- if (dominance .index (marketdatum [4 ]) < dominance .index (marketdatum [3 ])):
33+ if (dominance .index (marketdatum [3 ]) < dominance .index (marketdatum [2 ])):
3434 continue
35+ elif (dominance .index (marketdatum [3 ]) > dominance .index (marketdatum [2 ])):
36+ marketdata [:] = [x for x in marketdata if x .get ('Name' ) != tmp ]
3537 marketdata .append ({
3638 'Date' : self .asofDate ,
3739 'Name' : row [1 ],
You can’t perform that action at this time.
0 commit comments