Skip to content

Commit

Permalink
fix typos in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertDominguez committed Aug 20, 2024
1 parent 555b875 commit 935fa2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def read_gt_tracks():
assert "x" in data, f"'x' attribute missing for node {node}"
assert type(data["x"]) == float, f"'x' attribute has type {type(data['x'])}, expected 'float'"
assert "y" in data, f"'y' attribute missing for node {node}"
assert type(data["y"]) == float, f"'y' attribute has type {type(daåa['y'])}, expected 'float'"
assert type(data["y"]) == float, f"'y' attribute has type {type(data['y'])}, expected 'float'"
print("Your graph passed all the tests!")

# %% [markdown]
Expand Down Expand Up @@ -305,7 +305,7 @@ def nodes_from_segmentation(segmentation: np.ndarray) -> nx.DiGraph:
assert "x" in data, f"'x' attribute missing for node {node}"
assert type(data["x"]) == float, f"'x' attribute has type {type(data['x'])}, expected 'float'"
assert "y" in data, f"'y' attribute missing for node {node}"
assert type(data["y"]) == float, f"'y' attribute has type {type(daåa['y'])}, expected 'float'"
assert type(data["y"]) == float, f"'y' attribute has type {type(data['y'])}, expected 'float'"
print("Your candidate graph passed all the tests!")

# %% [markdown]
Expand Down

0 comments on commit 935fa2b

Please sign in to comment.