Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu committed Jul 15, 2024
1 parent 0078518 commit 2cf7fac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def format_patch_for_shapes(
graph_tar, series_key, frame, "GRAPH", field="graph"
)

for (from_node, to_node, edge) in graph_timepoint:
for from_node, to_node, edge in graph_timepoint:
edge_type, radius, _, _, _, _, flow = edge

name = f"VASCULATURE##{'UNDEFINED' if isnan(flow) else EDGE_TYPES[edge_type + 2]}"
Expand Down
2 changes: 1 addition & 1 deletion src/arcade_collection/output/parse_growth_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def parse_growth_timepoint(timepoint: dict, seed: int) -> list:
parsed_data = []
time = timepoint["time"]

for (location, cells) in timepoint["cells"]:
for location, cells in timepoint["cells"]:
u, v, w, z = location

for cell in cells:
Expand Down
4 changes: 4 additions & 0 deletions tests/arcade_collection/output/test_convert_model_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ def test_estimate_spatial_resolution_invalid_spatiall_key(self):
self.assertEqual(1, estimate_spatial_resolution(f"{ds_key}_B_C"))
self.assertEqual(1, estimate_spatial_resolution(f"A_{ds_key}_C"))
self.assertEqual(1, estimate_spatial_resolution(f"A_B_{ds_key}"))


if __name__ == "__main__":
unittest.main()
4 changes: 4 additions & 0 deletions tests/arcade_collection/output/test_parse_growth_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ def test_parse_growth_timepoint(self):

expected_df = pd.DataFrame(expected_dict)
self.assertTrue(expected_df.equals(returned_df))


if __name__ == "__main__":
unittest.main()

0 comments on commit 2cf7fac

Please sign in to comment.