Skip to content

Commit 23fa416

Browse files
damienbarkerjenkins
authored andcommitted
QPR-12242 update expected output
1 parent f6c3d85 commit 23fa416

5 files changed

Lines changed: 45 additions & 5 deletions

File tree

Examples/Example_63/ExpectedOutput/PnlExplain/pnl_scenario_t0.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

Examples/Example_63/ExpectedOutput/PnlExplain/pnl_scenario_t1.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

OREAnalytics/orea/engine/marketriskreport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ void MarketRiskReport::registerProgressIndicators() {
248248
}
249249

250250
void MarketRiskReport::calculate(const ext::shared_ptr<MarketRiskReport::Reports>& reports) {
251+
initialise();
251252
registerProgressIndicators();
252253

253254
LOG("Creating reports");

OREAnalytics/orea/engine/marketriskreport.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ class MarketRiskReport : public ore::data::ProgressReporter {
233233
hisScenGen_(hisScenGen), sensiArgs_(std::move(sensiArgs)),
234234
fullRevalArgs_(std::move(fullRevalArgs)), multiThreadArgs_(std::move(multiThreadArgs)), breakdown_(breakdown),
235235
requireTradePnl_(requireTradePnl) {
236-
initialise();
237236
}
238237
virtual ~MarketRiskReport() {}
239238

Tools/PythonTools/comparison_config.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,50 @@
13981398
"rel_tol": 1e-12
13991399
}
14001400
]
1401+
},
1402+
"pnl_explain.csv":{
1403+
"keys": [
1404+
"TradeId"
1405+
],
1406+
"column_settings": [
1407+
{
1408+
"names": [
1409+
"NPV(t0)",
1410+
"NPV(asof=t0;mkt=t1)",
1411+
"NPV(asof=t1;mkt=t0)",
1412+
"NPV(t1)",
1413+
"PeriodCashFlow",
1414+
"Theta",
1415+
"HypotheticalCleanPnL",
1416+
"CleanPnL",
1417+
"DirtyPnL",
1418+
"ScenarioPnl",
1419+
"TotalDelta",
1420+
"TotalGamma",
1421+
"TotalVega",
1422+
"IrDelta",
1423+
"IrGamma",
1424+
"IrVega",
1425+
"EqDelta",
1426+
"EqGamma",
1427+
"EqVega",
1428+
"FxDelta",
1429+
"FxGamma",
1430+
"FxVega",
1431+
"InfDelta",
1432+
"InfGamma",
1433+
"InfVega",
1434+
"CreditDelta",
1435+
"CreditGamma",
1436+
"CreditVega",
1437+
"CommDelta",
1438+
"CommGamma",
1439+
"CommVega"
1440+
],
1441+
"abs_tol": 1e-6,
1442+
"rel_tol": 1e-12
1443+
}
1444+
]
14011445
}
14021446
}
14031447
},

0 commit comments

Comments
 (0)