Skip to content

Commit

Permalink
Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Jan 21, 2025
1 parent 5e8e52f commit 992d3e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

@Workflow.wrap.as_function_node("speed")
def calculate_speed(
distance: u(float, units="meter"),
time: u(float, units="second"),
distance: u(float, units="meter") = 10.0,
time: u(float, units="second") = 2.0,
) -> u(
float,
units="meter/second",
Expand Down Expand Up @@ -102,7 +102,7 @@ def get_graph(wf):
graph.add((EX.HasOperation, RDF.type, RDF.Property))
graph.add((EX.Addition, RDF.type, OWL.Class))
graph.add((EX.Multiplication, RDF.type, OWL.Class))
for key, value in wf.children.items():
for value in wf.children.values():
data = get_inputs_and_outputs(value)
graph += get_triples(data, EX)
inherit_properties(graph, EX)
Expand Down

0 comments on commit 992d3e5

Please sign in to comment.