Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/oed2tests #954

Merged
merged 32 commits into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8b065a8
restored
johcarter Oct 8, 2021
d70291d
upgraded validation test cases to oed2 format
johcarter Oct 8, 2021
eb386cc
added original test case for #813
johcarter Oct 12, 2021
fc100c1
added fm64 mix of step and non step
johcarter Oct 15, 2021
e260818
added oed2 version of insurance and step combined test
johcarter Nov 16, 2021
3f0272e
expected results for sc units
johcarter Nov 23, 2021
09e3944
support for OED2 condtag
sstruzik Nov 22, 2021
4eeb0d4
added expected for sc units
johcarter Nov 23, 2021
173a58d
fix duplicated item_id
sstruzik Nov 24, 2021
1093126
added version of sc13 with 4 locations
johcarter Nov 24, 2021
0175fee
fix policies terms for missing layer
sstruzik Nov 24, 2021
f325308
special conditions expected results
johcarter Nov 26, 2021
ca8167f
added sc14
johcarter Nov 26, 2021
b19d009
handle CondClass
sstruzik Nov 26, 2021
3cb998f
added expected
johcarter Nov 26, 2021
448d75f
added sc5-sc8 to expected
johcarter Nov 26, 2021
1e0d46e
expected folder for conditions
johcarter Nov 30, 2021
9caeed2
move RiskLevel from scope to info
sstruzik Nov 30, 2021
79ec050
Merge branch 'feature/839_CondTag' into feature/oed2tests
sstruzik Dec 1, 2021
c9612f1
updated expected for step
johcarter Dec 1, 2021
2f6a665
test script - Create expected directory if not found
sambles Dec 2, 2021
a4c97ec
expected results for conditions
johcarter Dec 2, 2021
4c3bb51
update expected conditions
johcarter Dec 2, 2021
ee9e735
more updates to expected
johcarter Dec 2, 2021
991190a
added insurance_and_step test
johcarter Dec 2, 2021
08db356
FM testing - Update expected for insurance_conditions
sambles Dec 2, 2021
e5ebd99
Try new fm files
sambles Dec 2, 2021
2d3a1d6
updated to OED2 format
johcarter Dec 3, 2021
cf361f6
Fix test_reinsurance.py - move risk_level column
sambles Dec 3, 2021
b572a22
special condition use dict over set to preserve ordering
sstruzik Dec 3, 2021
6b0533f
Set MDK test to target py:3.8
sambles Dec 3, 2021
eda32a7
Merge branch 'develop' into feature/oed2tests
sambles Dec 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
added oed2 version of insurance and step combined test
  • Loading branch information
johcarter committed Nov 16, 2021
commit e260818348a441f960432dd24e7f1192aeedc997
571 changes: 571 additions & 0 deletions validation/insurance_and_step/account.csv

Large diffs are not rendered by default.

567 changes: 567 additions & 0 deletions validation/insurance_and_step/expected/account.csv

Large diffs are not rendered by default.

2,284 changes: 2,284 additions & 0 deletions validation/insurance_and_step/expected/coverages.csv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"GUL": {
"available": {
"accnumber": "Account number",
"constructioncode": "OED construction code",
"countrycode": "Country code (based on ISO3166 alpha-2 codes)",
"coverage_id": "Oasis coverage identifier",
"coverage_type_id": "Oasis coverage type",
"flexiloc_expectedgrosslossdr100": "Not an OED field",
"flexiloctestcase": "Not an OED field",
"flexilocunit": "Not an OED field",
"geogname1": "Geography name: Descriptor of the geographical area.",
"geogname2": "Geography name: Descriptor of the geographical area.",
"geogscheme1": "Geography scheme: Descriptor of the geography scheme used.",
"geogscheme2": "Geography scheme: Descriptor of the geography scheme used.",
"loccurrency": "Location currency",
"locname": "Location name",
"locnumber": "Location number",
"locperil": "Perils for location financial terms",
"locperilscovered": "Location perils covered",
"numberofbuildings": "Number of buildings",
"occupancycode": "OED occupancy code",
"peril_id": "OED peril code",
"portnumber": "Portfolio number",
"postalcode": "Postcode: the highest resolution postcode most often used."
}
},
"IL": {
"available": {
"accnumber": "Account number",
"basement": "Not an OED field",
"bitiv": "Not an OED field",
"buildingtiv": "Not an OED field",
"condnumber": "Not an OED field",
"constructioncode": "OED construction code",
"contentstiv": "Not an OED field",
"countrycode": "Country code (based on ISO3166 alpha-2 codes)",
"coverage_id": "Oasis coverage identifier",
"coverage_type_id": "Oasis coverage type",
"flexiloc_expectedgrosslossdr100": "Not an OED field",
"flexiloctestcase": "Not an OED field",
"flexilocunit": "Not an OED field",
"geogname1": "Geography name: Descriptor of the geographical area.",
"geogname2": "Geography name: Descriptor of the geographical area.",
"geogscheme1": "Geography scheme: Descriptor of the geography scheme used.",
"geogscheme2": "Geography scheme: Descriptor of the geography scheme used.",
"latitude": "Not an OED field",
"loccurrency": "Location currency",
"locded1building": "Not an OED field",
"locded2other": "Not an OED field",
"locded3contents": "Not an OED field",
"locded4bi": "Not an OED field",
"locded5pd": "Not an OED field",
"locded6all": "Not an OED field",
"locdedtype1building": "Not an OED field",
"locdedtype2other": "Not an OED field",
"locdedtype3contents": "Not an OED field",
"locdedtype4bi": "Not an OED field",
"locdedtype5pd": "Not an OED field",
"locdedtype6all": "Not an OED field",
"loclimit1building": "Not an OED field",
"loclimit2other": "Not an OED field",
"loclimit3contents": "Not an OED field",
"loclimit4bi": "Not an OED field",
"loclimit5pd": "Not an OED field",
"loclimit6all": "Not an OED field",
"loclimittype1building": "Not an OED field",
"loclimittype2other": "Not an OED field",
"loclimittype3contents": "Not an OED field",
"loclimittype4bi": "Not an OED field",
"loclimittype5pd": "Not an OED field",
"loclimittype6all": "Not an OED field",
"locminded6all": "Not an OED field",
"locname": "Location name",
"locnumber": "Location number",
"locperil": "Perils for location financial terms",
"locperilscovered": "Location perils covered",
"longitude": "Not an OED field",
"numberofbuildings": "Number of buildings",
"numberofstoreys": "Not an OED field",
"occupancycode": "OED occupancy code",
"othertiv": "Not an OED field",
"peril_id": "OED peril code",
"portnumber": "Portfolio number",
"postalcode": "Postcode: the highest resolution postcode most often used.",
"yearbuilt": "Not an OED field"
}
}
}
146 changes: 146 additions & 0 deletions validation/insurance_and_step/expected/exposure_summary_report.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"total": {
"modelled": {
"tiv": 62232821493.1,
"number_of_locations": 734
},
"not-modelled": {
"tiv": 0.0,
"number_of_locations": 0
},
"portfolio": {
"tiv": 62232821493.1,
"number_of_locations": 734
}
},
"1": {
"all": {
"tiv": 62232821493.1,
"tiv_by_coverage": {
"buildings": 39411186816.0,
"other": 1473680000.0,
"contents": 14325471958.0,
"bi": 7022482719.1
},
"number_of_locations": 734,
"number_of_locations_by_coverage": {
"buildings": 734,
"other": 734,
"contents": 734,
"bi": 734
}
},
"success": {
"tiv": 62232821493.1,
"tiv_by_coverage": {
"buildings": 39411186816.0,
"other": 1473680000.0,
"contents": 14325471958.0,
"bi": 7022482719.1
},
"number_of_locations": 734,
"number_of_locations_by_coverage": {
"buildings": 734,
"other": 734,
"contents": 734,
"bi": 734
}
},
"fail": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
},
"nomatch": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
},
"fail_ap": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
},
"fail_v": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
},
"notatrisk": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
},
"noreturn": {
"tiv": 0.0,
"tiv_by_coverage": {
"buildings": 0.0,
"other": 0.0,
"contents": 0.0,
"bi": 0.0
},
"number_of_locations": 0,
"number_of_locations_by_coverage": {
"buildings": 0,
"other": 0,
"contents": 0,
"bi": 0
}
}
}
}
Loading