-
Notifications
You must be signed in to change notification settings - Fork 25
Create alias FRInt32 for FixedRational{Int32, 25200}
#191
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
Conversation
Benchmark Results (Julia v1.10)Time benchmarks
Memory benchmarks
|
Benchmark Results (Julia v1)Time benchmarks
Memory benchmarks
|
|
Thanks Miles, love the simplifications here! Should this bit of the README also be updated now? DynamicQuantities.jl/README.md Line 331 in 5668cf2
- 3-element QuantityArray(::Vector{Float64}, ::Quantity{Float64, Dimensions{FixedRational{Int32, 25200}}}):
+ 3-element QuantityArray(::Vector{Float64}, ::Quantity{Float64, Dimensions{FRInt32}}):I also did some reading on why the type alias printing tests are failing, and my understanding is that this is actually by design? I'm still getting familiar with TestItems, but are things failing because it is creating its own module, leading to the fully qualified types we're seeing in CI, but not interactively? |
|
I don't think so b/c these ones are normal |
|
And thx, good catch |
Co-authored-by: Ian Weaver <[email protected]>
|
Oh wait. You're totally right!!! My bad. Just saw this behavior: julia> module A
using DynamicQuantities
f() = println(FRInt32)
end
Main.A
julia> A.f()
DynamicQuantities.FRInt32
julia> using DynamicQuantities
julia> A.f()
FRInt32Which is ... sorta weird. But I guess means the tests need to accommodate. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #191 +/- ##
=======================================
Coverage 99.14% 99.14%
=======================================
Files 21 21
Lines 1292 1292
=======================================
Hits 1281 1281
Misses 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

Makes the printouts easier to read. Also this creates
FRInt8=FixedRational{Int8,12}which makes it less challenging to swap the dimensions type.@icweaver would you be up for a review?