Skip to content

Follow the DeviceBaseUnit -> ComponentBaseUnit rename in the docs - #56

Merged
jd-lara merged 2 commits into
psy6from
lk/component-base-units
Sep 10, 2026
Merged

Follow the DeviceBaseUnit -> ComponentBaseUnit rename in the docs#56
jd-lara merged 2 commits into
psy6from
lk/component-base-units

Conversation

@luke-kiernan

Copy link
Copy Markdown
Contributor

Follow-up to InfrastructureSystems#634 / PowerSystems#1791, which renamed the per-unit marker DU/DeviceBaseUnit to CU/ComponentBaseUnit.

Nothing in PFFP breaks. The parser names no unit marker in executable code: it writes the OpenAPI wire format, whose power_units spelling (COMPONENT_BASE/NATURAL_UNITS) comes from SiennaSchemas and is unchanged, and IS.UnitSystem.DEVICE_BASE was not renamed by the IS PR — only the marker singleton types were. So every reference here is prose describing the PowerSystems importer these documents are written for, and stale prose naming a type that no longer exists is what this fixes.

Eight lines across four files:

  • src/openapi/build.jl, src/openapi/cost.jl
  • src/openapi/device_base.jl (×5)
  • test/test_openapi_branch.jl

Deliberately not changed: the device_base.jl filename and the _DEVICEBASE_* constant names. Renaming those would touch the same files as the open #42 and #55 for no behavioural gain; worth doing once those land, if at all.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LP6eB1zx4eyE3hd7tpvSue

luke-kiernan and others added 2 commits September 10, 2026 10:51
InfrastructureSystems#634 and PowerSystems#1791 renamed the per-unit
marker: `DU`/`DeviceBaseUnit` are now `CU`/`ComponentBaseUnit`. PFFP
names no marker in code -- it writes the OpenAPI wire format, whose
`power_units` spelling (`COMPONENT_BASE`/`NATURAL_UNITS`) comes from
SiennaSchemas and did not change, and `IS.UnitSystem.DEVICE_BASE` was not
renamed -- so this is comments and docstrings only, describing the
PowerSystems importer these documents are written for.

The `device_base.jl` filename and the `_DEVICEBASE_*` constant names are
deliberately left alone: renaming them would collide with the open
work in #42 and #55 across the same files for no behavioural gain.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LP6eB1zx4eyE3hd7tpvSue
Two more prose sites the first pass missed: the qualified `IS.DU` in
make_thermal_cost's docstring and a `PSY.DU` aside in the branch tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LP6eB1zx4eyE3hd7tpvSue
@jd-lara
jd-lara merged commit c492522 into psy6 Sep 10, 2026
2 of 7 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.

2 participants