-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update scitypes.jl #29
Conversation
So we should only depend on ScientificTypesBase.jl now @OkonSamuel ? |
Yes. Only extend methods from julia> using CoDa, ScientificTypes
julia> c = Composition(1,2,3)
3-part composition
┌ ┐
w1 ┤■■■■■■■■■■■■ 1.0
w2 ┤■■■■■■■■■■■■■■■■■■■■■■■ 2.0
w3 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 3.0
└ ┘
julia> scitype(c)
Compositional{3} |
But it seems that we still need DefaultConvention from ScientificTypes.jl? It is a bit confusing. Can you please clarify? |
Codecov Report
@@ Coverage Diff @@
## master #29 +/- ##
=======================================
Coverage 84.50% 84.50%
=======================================
Files 13 13
Lines 355 355
=======================================
Hits 300 300
Misses 55 55
Continue to review full report at Codecov.
|
Yes, You would still need So that could be done by ST.ScientificTypesBase.scitype(::YourType, ::ST.DefaultConvention) = ... I hope this is clear enough. |
I find it strange that ScientificTypes.jl doesn't reexport scitype from ScientificTypesBase.jl. Someone depending on the default convention would like to implement methods for functions defined in the same module. Any chance these functions can be reexported in ScientificTypes.jl? I really feel that we should try another round of refactoring in these two packages. |
I'll discuss with @ablaom about this possibility. |
@juliohm what if I renamed the using CoDa, ScientificTypes
ScientificTypes.scitype_def(::YourType, ::ST.DefaultConvention) = ...
c = Composition(1,2,3)
scitype(c) |
Why do we need two different function names @OkonSamuel ? Isn't just a single function with multiple methods we are discussing? Something changed recently? Why things are split between two packages the way they are? |
Yes, there was a recent change as regards performance, we wanted to avoid setting convention at run time. We can't just move the |
Addresses ScientificTypes.jl#179