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

Bug: Array Division by Unit #225

Closed
bhgomes opened this issue Apr 20, 2019 · 1 comment
Closed

Bug: Array Division by Unit #225

bhgomes opened this issue Apr 20, 2019 · 1 comment

Comments

@bhgomes
Copy link

bhgomes commented Apr 20, 2019

using Unitful
ones(3) / u"s"

ERROR: MethodError: no method matching /(::Array{Float64,1}, ::Unitful.FreeUnits{(s,),𝐓,nothing})

It appears that division by unit was not implemented here, just multiplication.

https://github.com/ajkeller34/Unitful.jl/blob/82f84969c2b78fcc3f66bc23ef997e81c0f0661e/src/quantities.jl#L35-L36

@bhgomes bhgomes changed the title Bug: Array Division Bug: Array Division by Unit Apr 20, 2019
ajkeller34 added a commit that referenced this issue Nov 11, 2019
ajkeller34 added a commit that referenced this issue Dec 1, 2019
@sostock
Copy link
Collaborator

sostock commented Jan 27, 2022

This was fixed in #369.

@sostock sostock closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants