Skip to content
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

Dimension values disappear? #868

Open
kapple19 opened this issue Nov 27, 2024 · 1 comment
Open

Dimension values disappear? #868

kapple19 opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kapple19
Copy link
Contributor

kapple19 commented Nov 27, 2024

The following simple example

##
using DimensionalData

##
xvals = X(-5. : 5)
yvals = Y(-10. : 2 : 12)
zvals = Z(-3 : 0.5 : 4)

##
u = @. @d xvals * yvals
v = @. @d xvals * zvals
w = @. @d yvals * zvals

##
f(u, v, w) = u + v + w

F = @d @. f(u, v, w)

results in dims(F, X) and dims(F, Y) working fine, but it seems to have lost info on Z, i.e

julia> dims(F, X)
X Sampled{Float64} ForwardOrdered Regular DimensionalData.Dimensions.Lookups.Points
wrapping: -5.0:1.0:5.0

julia> dims(F, Z)
Z

julia> 

Do I misunderstand how named-dimensional broadcasting works?

@rafaqz
Copy link
Owner

rafaqz commented Dec 13, 2024

Sorry for the wait, yes this seems to be a bug. What happens to Z!?

@rafaqz rafaqz added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants