Commit ef606e7 1 parent 5920ccd commit ef606e7 Copy full SHA for ef606e7
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,12 @@ def add_structure(c: Computer) -> None:
398
398
# - Multiple static and dynamic tasks generated in loops etc.
399
399
tasks : list [tuple ] = list (STRUCTURE_STATIC ) + [
400
400
("c::transport" , quote (spec .add .set ["commodity" ])),
401
- ("c::transport+base" , quote (spec .add .set ["commodity" ] + info .set ["commodity" ])),
401
+ # Convert to str to avoid TypeError in broadcast_wildcard → sorted()
402
+ # TODO Remove once sdmx.model.common.Code is sortable with str
403
+ (
404
+ "c::transport+base" ,
405
+ quote (list (map (str , spec .add .set ["commodity" ] + info .set ["commodity" ]))),
406
+ ),
402
407
("cg" , quote (spec .add .set ["consumer_group" ])),
403
408
("indexers:cg" , spec .add .set ["consumer_group indexers" ]),
404
409
("nodes" , quote (info .set ["node" ])),
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def broadcast_wildcard(
59
59
"""Broadcast over coordinates `coords` along respective dimension(s) `dim`.
60
60
61
61
`dim` may identify a single dimension or a sequence of dimensions; `coords` must
62
- be given for each dimension
62
+ be given for each dimension.
63
63
64
64
For each respective items from `dim` and `coords`, any missing coordinates along the
65
65
dimension are populated using the values of `qty` keyed with the 'wildcard' label
You can’t perform that action at this time.
0 commit comments