Skip to content

Commit

Permalink
chore: metatada only string
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Sep 7, 2023
1 parent 1956745 commit 5454532
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion substrafl/nodes/aggregation_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def update_states(
else None
)

task_metadata = {"round_idx": round_idx} if round_idx is not None else {}
task_metadata = {"round_idx": str(round_idx)} if round_idx is not None else {}
aggregate_task = substra.schemas.ComputePlanTaskSpec(
function_key=str(uuid.uuid4()), # bogus function key
task_id=op_id,
Expand Down
2 changes: 1 addition & 1 deletion substrafl/nodes/test_data_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def update_states(
parent_task_output_identifier=OutputIdentifiers.predictions,
)
]
task_metadata = {"round_idx": round_idx} if round_idx is not None else {}
task_metadata = {"round_idx": str(round_idx)} if round_idx is not None else {}

predicttask = substra.schemas.ComputePlanTaskSpec(
function_key=str(uuid.uuid4()), # bogus function key
Expand Down
4 changes: 2 additions & 2 deletions substrafl/nodes/train_data_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def init_states(
),
},
metadata={
"round_idx": round_idx,
"round_idx": str(round_idx),
},
tag=TaskType.INITIALIZATION,
worker=self.organization_id,
Expand Down Expand Up @@ -160,7 +160,7 @@ def update_states(
else:
shared_inputs = []

task_metadata = {"round_idx": round_idx} if round_idx is not None else {}
task_metadata = {"round_idx": str(round_idx)} if round_idx is not None else {}
train_task = substra.schemas.ComputePlanTaskSpec(
function_key=str(uuid.uuid4()), # bogus function key
task_id=op_id,
Expand Down

0 comments on commit 5454532

Please sign in to comment.