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

io:load throws error when loading ~spl(a,5) formula without using BSPlineKit "don't know how to generate modelcols" #168

Open
behinger opened this issue Feb 13, 2024 · 0 comments

Comments

@behinger
Copy link
Member

behinger commented Feb 13, 2024

when load an unfoldmodel that contains a formula 0~spl(a,5), JLD2 throws a more-or-less cryptic error, in cases using BSPlineKit was not called

ERROR: ArgumentError: don't know how to generate modelcols for term [email protected]{Tuple}(((is_face, Reconstruct@BSplineTerm{StatsModels.ContinuousTerm{Float64},Int64}(Any[sac_amplitude, 4, 4, [0.42, 24.26]]), Reconstruct@BSplineTerm{StatsModels.ContinuousTerm{Float64},Int64}(Any[fix_avgpos_x, 4, 4, [167.8, 3613.3]]), Reconstruct@BSplineTerm{StatsModels.ContinuousTerm{Float64},Int64}(Any[fix_avgpos_y, 4, 4, [171.5, 1975.8]])),)). Did you forget to call apply_schema?

idea from @jschepers: check while loading if a formula has a spline and check if BSplineKit is loaded or not

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

1 participant