Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flowrep/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def get_hashed_node_dict(
if "function" not in nodes_dict[node]:
raise ValueError("Hashing works only on flat data")
data_dict = {
"nodes": _get_function_metadata(nodes_dict[node]["function"]),
"node": _get_function_metadata(nodes_dict[node]["function"]),
"inputs": {},
"outputs": list(nodes_dict[node]["outputs"].keys()),
}
Expand All @@ -1324,7 +1324,7 @@ def get_hashed_node_dict(
else:
value = predecessor
data_dict["inputs"][key] = value
data_dict["nodes"]["connected_inputs"] = connected_inputs
data_dict["node"]["connected_inputs"] = connected_inputs
return data_dict


Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def workflow_with_data(a=10, b=20):
self.assertEqual(
data_dict,
{
"nodes": {
"node": {
"module": add.__module__,
"qualname": "add",
"version": "not_defined",
Expand All @@ -945,7 +945,7 @@ def workflow_with_data(a=10, b=20):
self.assertEqual(
data_dict,
{
"nodes": {
"node": {
"module": multiply.__module__,
"qualname": "multiply",
"version": "not_defined",
Expand Down
Loading