Skip to content

Centralize and apply component ID validation across all input paths #11

@zsarnoczay

Description

@zsarnoczay

Problem

  • Validation logic currently lives within the Pelicun conversion path and it is only applied to the comp_ds_list.csv prep. Other files and non-Pelicun inputs can currently bypass equivalent checks.

Proposed solution

  • Extract the validation into a reusable function and call it from both build paths to check every component coming in. Provide actionable error messages listing unknown components.

Permalink to context in #8: https://github.com/OpenPBEE/Functional-Recovery-Python/pull/8/changes#diff-09ddbe9b47cd801ac2851f14da73cf459f44c2cd8c6d3f2a557541ff2a6bc4b2R747

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions