Skip to content

Commit 202c41c

Browse files
committed
Add "mix-models ssp transport --method=B" option
1 parent 373fb63 commit 202c41c

File tree

1 file changed

+3
-2
lines changed
  • message_ix_models/project/ssp

1 file changed

+3
-2
lines changed

message_ix_models/project/ssp/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ def gen_structures(context, **kwargs):
2525

2626

2727
@cli.command("transport")
28+
@click.option("--method", type=click.Choice(["A", "B"]), required=True)
2829
@click.argument("path_in", type=click.Path(exists=True, dir_okay=False, path_type=Path))
2930
@click.argument(
3031
"path_out",
3132
type=click.Path(exists=True, dir_okay=False, path_type=Path),
3233
required=False,
3334
)
3435
@click.pass_obj
35-
def transport_cmd(context: "Context", path_in: Path, path_out: Optional[Path]):
36+
def transport_cmd(context: "Context", method, path_in: Path, path_out: Optional[Path]):
3637
"""Postprocess aviation emissions.
3738
3839
Data are read from PATH_IN, in .xlsx or .csv format. If .xlsx, the data are first
@@ -64,7 +65,7 @@ def transport_cmd(context: "Context", path_in: Path, path_out: Optional[Path]):
6465
else:
6566
path_out_user = path_out
6667

67-
main(path_in, path_out)
68+
main(path_in, path_out, method)
6869

6970
if path_out_user != path_out:
7071
print(f"Convert CSV output to {path_out_user}")

0 commit comments

Comments
 (0)