Substra / substra

Low-level Python library used to interact with a Substra network

Home Page:https://docs.substra.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot add aggregatetuple with multiple in-model keys

maeldebon opened this issue · comments

This isn't possible to add an aggregatetuple with multiple in-model keys.

In the code, it is specified that this should be possible:

@add.command('aggregatetuple')
...
@click.option('--in-model-key', 'in_models_keys', type=click.STRING, multiple=True, help='In model traintuple key.')
...

But when I try to do so, I get this output:

$ substra add aggregatetuple --algo-key 7c96dd8737255cc655718d54abbb39c7ff95f46252d667b7d1e7079a5dbd9085 --in-model-key 1028281c9c60414c4bc017b701a3e93bc3c8047733264f170ae96095c9bf73c3 2b672aa05956b7271d502260e708076a5ba72003203ea0b272f6044beb2f3f10 --worker MyOrg1MSP

Usage: substra add aggregatetuple [OPTIONS]
Try "substra add aggregatetuple --help" for help.

Error: Got unexpected extra argument (2b672aa05956b7271d502260e708076a5ba72003203ea0b272f6044beb2f3f10)

There is a syntax error, here is the call that ought to pass:

$ substra add aggregatetuple /
    --algo-key 7c96dd8737255cc655718d54abbb39c7ff95f46252d667b7d1e7079a5dbd9085 \
    --in-model-key 1028281c9c60414c4bc017b701a3e93bc3c8047733264f170ae96095c9bf73c3 \
    --in-model-key  2b672aa05956b7271d502260e708076a5ba72003203ea0b272f6044beb2f3f10 \
    --worker MyOrg1MSP

Oh okay, sorry! 😕