Skip to content

Commit

Permalink
step2
Browse files Browse the repository at this point in the history
  • Loading branch information
huygensCortex committed Jul 31, 2024
1 parent 4a6efee commit 7ff2721
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions step2.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
pix4 = np.where(I2 == p2)
I22[pix4] = ity + 1
else:
I22 = I2
I22 = I2.copy()
IS61 = TETC[0][im_no]
IS61[pix] = ccel
TETC[0][im_no] = IS61.astype(np.uint16)
Expand All @@ -170,6 +170,7 @@
rang2 = range(xx, len(tet_masks))
print(xx)


ccel -= 1 # number of cells tracked

# Removing the shock-induced points from rang
Expand Down Expand Up @@ -274,12 +275,6 @@ def replace_none_with_empty_array(data):
return np.array([])
else:
return data

TETmasks = replace_none_with_empty_array(TETmasks)

sio.savemat(os.path.join(sav_path, "art_py.mat"), {
'all_ob_py': all_ob
})

# Save results
sio.savemat(sav_path + '_TET_Track.mat', {
Expand Down

0 comments on commit 7ff2721

Please sign in to comment.