Skip to content

Commit

Permalink
compute raw matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Jan 23, 2024
1 parent 091fdeb commit 8144801
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/napatrackmater/Trackvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2136,13 +2136,13 @@ def convert_tracks_to_simple_arrays(



def compute_raw_matrix(track_arrays, delta_t):
def compute_raw_matrix(track_arrays, t_delta):

track_duration = track_arrays.shape[0]
delta_t = int(delta_t)
if track_duration < delta_t:
t_delta = int(t_delta)
if track_duration < t_delta:
#zero pad
pad_rows = delta_t - track_duration
pad_rows = t_delta - track_duration

# Pad with the last row and then zeros
last_row = track_arrays[-1, :]
Expand Down

0 comments on commit 8144801

Please sign in to comment.