10000 fix: blob.py 2d intensities shape and pd.concat instead of append by shachafl · Pull Request #2064 · spacetx/starfish · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: blob.py 2d intensities shape and pd.concat instead of append #2064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions starfish/core/spots/FindSpots/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def image_to_spots(
y_inds = fitted_blobs_array[:, 0].astype(int)
x_inds = fitted_blobs_array[:, 1].astype(int)
radius = np.round(fitted_blobs_array[:, 2] * np.sqrt(2))
intensities = data_image[tuple([y_inds, x_inds])]
intensities = data_image[tuple([z_inds, y_inds, x_inds])]

# construct dataframe
spot_data = pd.DataFrame(
Expand Down Expand Up @@ -215,8 +215,8 @@ def run(
spot_attributes_list[i][1]['z']
r = spot_attributes_list[i][1][Axes.ROUND]
ch = spot_attributes_list[i][1][Axes.CH]
merged_z_tables[(r, ch)] = merged_z_tables[(r, ch)].append(
spot_attributes_list[i][0].spot_attrs.data)
merged_z_tables[(r, ch)] = pd.concat(
[merged_z_tables[(r, ch)], spot_attributes_list[i][0].spot_attrs.data])
new = []
r_chs = sorted([*merged_z_tables])
selectors = list(image_stack._iter_axes({Axes.ROUND, Axes.CH}))
Expand Down
0