Skip to content

Portfolio validation fails if limit and deductible type columns are missing #57

@carlfischerjba

Description

@carlfischerjba

Issue Description

The limit and deductible type fields have a default value of 0 (treat as an absolute amount) and are therefore not mandatory. However, portfolio validation fails if columns such as LocDedType3Contents or LocLimitType1Building are missing. By adding in empty columns, validation passes. Empty column or absent column should be treated the same.

Steps to Reproduce (Bugs only)

  1. Run ods_tools check --location exposure_loc_latlon_TCs.csv (attached).
  2. See errors about missing columns.

Expected behaviour: no errors and the default value from the spec is used.

(The error about missing LocPeril is a separate issue. It would be convenient if the default was to apply to all perils, or possibly use the value of LocPerilsCovered but I admit I'm unclear about the purpose of this field.)

Version / Environment information

ods_tools 3.1.0

Example data / logs

exposure_loc_latlon_TCs.csv

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions