Skip to content

Commit

Permalink
Provide dims in stft output construction to avoir errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrabattoni committed Dec 2, 2024
1 parent 10acb44 commit 8c7ee47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xdas/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ def func(x):
coords[input_dim] = time
coords[output_dim] = freqs

return DataArray(data, coords)
dims = da.dims + (output_dim,)

return DataArray(data, coords, dims)

0 comments on commit 8c7ee47

Please sign in to comment.