Skip to content

record unit types in the demand-type vocabulary - #45

Merged
zsarnoczay merged 2 commits into
NHERI-SimCenter:mainfrom
zsarnoczay:main
Jul 22, 2026
Merged

record unit types in the demand-type vocabulary#45
zsarnoczay merged 2 commits into
NHERI-SimCenter:mainfrom
zsarnoczay:main

Conversation

@zsarnoczay

Copy link
Copy Markdown
Collaborator

This PR extends the controlled vocabularies with unit-type
information for demand types. The model data itself is unchanged.

  • Unit types in the demand-type vocabulary: the new canonical
    EDP_TYPES mapping records each demand type's short acronym and the
    physical quantity it is measured in, and the new UNIT_TYPES
    vocabulary enumerates the valid unit types (acceleration, speed,
    displacement, unitless, rotation, force, force_per_length,
    pressure). Consumers — most immediately Pelicun 3.10 — can infer
    physical units for demand data from the vocabulary instead of
    maintaining hardcoded lists.
  • EDP_to_demand_type is now derived from EDP_TYPES with content
    identical to before, so existing consumers are unaffected.

Add a canonical EDP_TYPES mapping that stores the acronym and unit
type of every demand type, and a UNIT_TYPES vocabulary (acceleration,
speed, displacement, unitless, rotation). EDP_to_demand_type is now
derived from EDP_TYPES with content identical to before, so existing
consumers are unaffected.

Unit types let consumers (e.g., pelicun 3.10+) infer physical units
for demand columns from the vocabulary.
Bump the version to 3.1, refresh uv.lock, and add the 3.1 changelog
entry and release notes.
@zsarnoczay
zsarnoczay merged commit 1cc7eaf into NHERI-SimCenter:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant