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

Converting exposure files to previous OED version before running model #1381

Closed
ncerutti opened this issue Oct 25, 2023 · 0 comments · Fixed by #1388
Closed

Converting exposure files to previous OED version before running model #1381

ncerutti opened this issue Oct 25, 2023 · 0 comments · Fixed by #1388
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ncerutti
Copy link
Contributor

Issue description

See PR #OasisLMF/ODS_Tools#66, which introduced OED (Open Exposure Data) version support in oed_tools.

If a model configuration includes a list of supported OED versions and the OED schema contains values that must be converted to ensure compatibility with those versions, then the exposure data will be converted to the latest compatible version before running the model.

Example

Version 2.2 introduced OccupancyCodes 1070, 1071, 1072, 1073.
If the model configuration file includes "supported_oed_versions":["2.0"], then any entry in the exposure files referring to these codes will be replaced by their fall back codes (1070 -> 1051, 1071 -> 1056, etc.). Fall back codes are predefined values that provide backward compatibility for newer OED versions.

Notes

This step should be skipped either if the corresponding option is set in the model configuration file (e.g., "convert_oed_version"="False", or if the corresponding argument is passed (e.g., --versioning false).

@ncerutti ncerutti self-assigned this Oct 25, 2023
@benhayes21 benhayes21 added the enhancement New feature or request label Nov 8, 2023
@awsbuild awsbuild added this to the 2.3.0 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants