-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Feature]: Using custom dimensions using DynamicQuantities
#335
Comments
Just copying my comment for anybody else reading this:
But would be nice to allow actual custom dimensions. |
Here's a reduced test that fails: using SymbolicRegression.InterfaceDynamicQuantitiesModule: get_units, get_si_units
using DynamicQuantities
struct AngleDimensions{R} <: AbstractDimensions{R}
length::R
mass::R
time::R
current::R
temperature::R
luminosity::R
amount::R
rad::R
end
const rad = Quantity(1.0, AngleDimensions(; rad=1))
get_si_units(Float64, [dimension(y)]) Basically this code: SymbolicRegression.jl/src/InterfaceDynamicQuantities.jl Lines 16 to 57 in cd23a6e
Dimensions is the only AbstractDimensions for units.
|
Feature Request
(Originally a discussion post on the PySR github repository).
I think that it would be useful to be able to use custom
AbstractDimensions
with this library.An example of this usecase could be:
Please let me know if there is anything I can do to help with this feature.
The text was updated successfully, but these errors were encountered: