Skip to content

Commit

Permalink
Fix unused variables code check
Browse files Browse the repository at this point in the history
  • Loading branch information
ritvje committed Jul 17, 2024
1 parent d41dacd commit 58bd8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysteps/tracking/tdating.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def dating(

if output_splits_merges:
# Assign splitted parameters for the previous timestep
for ID, split_cell in splitted_cells.iterrows():
for _, split_cell in splitted_cells.iterrows():
prev_list_id = cell_list[-1][
cell_list[-1].ID == split_cell.ID
].index.item()
Expand All @@ -251,7 +251,7 @@ def dating(
cells_id.at[cur_list_id, "results_from_split"] = True

merged_cells = cells_id[cells_id.merged == True]
for i, cell in merged_cells.iterrows():
for _, cell in merged_cells.iterrows():
for merged_id in cell.merged_IDs:
prev_list_id = cell_list[-1][
cell_list[-1].ID == merged_id
Expand Down

0 comments on commit 58bd8a2

Please sign in to comment.