CommoditySingleSourceSink.to_tuple

CommoditySingleSourceSink.to_tuple(as_label: bool = True) tuple[source]

Get Commodity data as tuple.

Parameters
as_labelbool, default=True

If True, return (source_label, sink_label, rate), else (source_id, sink_id, rate).

Returns
tuple

War commodity data.