Skip to content

Commit

Permalink
Revert "Fix coords assignment in CombineAdjustFeatures.run (#1965)"
Browse files Browse the repository at this point in the history
This reverts commit 89baf83.
  • Loading branch information
berl authored Oct 20, 2021
1 parent 89baf83 commit 16c7d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion starfish/core/intensity_table/intensity_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class IntensityTable(xr.DataArray):
An IntensityTable records the numeric intensity of a set of features in each
:code:`(round, channel)` tile in which the feature is identified.
The :py:class:`IntensityTable` has shape
:code:`(n_feature, n_round, n_channel)`.
:code:`(n_feature, n_channel, n_round)`.
Some :py:class:`SpotFinder` methods identify a position and search for
Gaussian blobs in a small radius, only recording intensities if they are
Expand Down
7 changes: 2 additions & 5 deletions starfish/core/spots/DetectPixels/combine_adjacent_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,10 @@ def run(
# create new indexes for the output IntensityTable
channel_index = mean_pixel_traces.indexes[Axes.CH]
round_index = mean_pixel_traces.indexes[Axes.ROUND]
coords = IntensityTable._build_xarray_coords(
spot_attributes=spot_attributes,
round_values=round_index,
channel_values=channel_index)
coords = IntensityTable._build_xarray_coords(spot_attributes, channel_index, round_index)

# create the output IntensityTable
dims = (Features.AXIS, Axes.ROUND.value, Axes.CH.value)
dims = (Features.AXIS, Axes.CH.value, Axes.ROUND.value)
intensity_table = DecodedIntensityTable(
data=mean_pixel_traces, coords=coords, dims=dims
)
Expand Down

0 comments on commit 16c7d47

Please sign in to comment.