Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 24, 2024
1 parent 93d1f12 commit cf05db6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ def preprocess_image_features(self, all_features: MultiChannelImage) -> MultiCha
n_spectra = all_features.n_nonzero
return MultiChannelImage(
data=DataArray(
np.full((n_spectra, 1, 1), global_distance), dims=["y", "x", "c"], coords=all_features.coords
np.full((n_spectra, 1, 1), global_distance), dims=["y", "x", "c"], coords=all_features.coordinates_flat
),
is_foreground=DataArray(
np.ones((n_spectra, 1), dtype=bool), dims=["y", "x"], coords=all_features.coordinates_flat
),
is_foreground=DataArray(np.ones((n_spectra, 1), dtype=bool), dims=["y", "x"], coords=all_features.coords),
)

def fit_spectrum_model(self, features: DataArray) -> DataArray:
Expand Down

0 comments on commit cf05db6

Please sign in to comment.