We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currrently inverse for NamedTuple aggregators does not accept different orderings or supersets. Eg
inverse
NamedTuple
julia> using TransformVariables julia> t = as((a = asℝ, b = asℝ)); julia> inverse(t, (a = 1.0, b = 2.0)) 2-element Vector{Float64}: 1.0 2.0 julia> inverse(t, (b = 1.0, a = 2.0)) ERROR: ArgumentError: keys(transformations) == keys(y) must hold. Got keys(transformations) => (:a, :b) keys(y) => (:b, :a) julia> inverse(t, (a = 1.0, b = 2.0, c = 3.0)) ERROR: ArgumentError: keys(transformations) == keys(y) must hold. Got keys(transformations) => (:a, :b) keys(y) => (:a, :b, :c)
This is OK, but the user should be provided with a method to "regularize" NamedTuples (eg user input may mix up ordering).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currrently
inverse
forNamedTuple
aggregators does not accept different orderings or supersets. EgThis is OK, but the user should be provided with a method to "regularize" NamedTuples (eg user input may mix up ordering).
The text was updated successfully, but these errors were encountered: