Skip to content

Commit

Permalink
Make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Aug 7, 2023
1 parent 8b01173 commit 13d6727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions btrack/napari/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def get_reader(path: PathOrPaths) -> Optional[ReaderFunction]:
".hdf5",
]
return (
reader_function
if pathlib.Path(path).suffix in supported_extensions
else None
reader_function if pathlib.Path(path).suffix in supported_extensions else None
)


Expand Down
8 changes: 2 additions & 6 deletions btrack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ def napari_to_tracks(
"x": x,
"y": y,
"z": z,
"dummy": properties.get(
"dummy", np.full_like(track_id, fill_value=False)
),
"dummy": properties.get("dummy", np.full_like(track_id, fill_value=False)),
"label": properties.get("state", np.full_like(track_id, fill_value=5)),
}
track_objects = objects_from_dict(objects_dict)
Expand All @@ -288,9 +286,7 @@ def napari_to_tracks(
track_indices = np.argwhere(track_id == track).ravel()
track_data = [track_objects[i] for i in track_indices]
parent = graph.get(track, [track])
children = [
child for (child, parents) in graph.items() if track in parents
]
children = [child for (child, parents) in graph.items() if track in parents]
tracklet = Tracklet(
ID=track,
data=track_data,
Expand Down

0 comments on commit 13d6727

Please sign in to comment.