Skip to content

Commit

Permalink
Silence warnings re: units in .transport.ldv
Browse files Browse the repository at this point in the history
"output" for most technologies is dimensionless because ACT and the
output commodities have the same units.
  • Loading branch information
khaeru committed Dec 4, 2024
1 parent 498ab8f commit 0b082b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix_models/model/transport/ldv.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def prepare_tech_econ(

# Create base quantity for "output" parameter
nty = tuple("nty")
c.add(k.output[0] * nty, wildcard(1.0, "gigavehicle km", nty))
c.add(k.output[0] * nty, wildcard(1.0, "", nty))

Check warning on line 302 in message_ix_models/model/transport/ldv.py

View check run for this annotation

Codecov / codecov/patch

message_ix_models/model/transport/ldv.py#L302

Added line #L302 was not covered by tests
for i, coords in enumerate(["n::ex world", "t::LDV", "y::model"]):
c.add(
k.output[i + 1] * nty,
Expand Down

0 comments on commit 0b082b9

Please sign in to comment.