OasisLMF / ODS_OpenExposureData

Open data standards curated by Oasis.
61 stars 8 forks source link

Store relative path if not orig source file #113

Closed sambles closed 1 year ago

sambles commented 1 year ago

Fix for ods-tools running in OasisPlatform

The platform fails when source file paths are stored as absolute in exposure_info.json.

Because file generation is run from a temp directory, these are stored as absolute paths in exposure_info.json and then compressed into an an archive.

At the loss generation step, this files are uncompressed into a new temp dir for execution, when loading exposure the ods_tool fails because its trying to load the older (now non-existent) absolute file paths.

Fixed by saving paths relative to exposure_info.json location

sambles commented 1 year ago

Fixed with https://github.com/OasisLMF/ODS_OpenExposureData/pull/114