-
Notifications
You must be signed in to change notification settings - Fork 13
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
Column type conversions #136
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good!
However, this is a pretty aggressive change. I wonder whether we can create an opt-in way for adding this to a module, like how we once had jaspResults: true
in the QML files. Because I can imagine that many hidden issues appear when this is suddenly some R package receives a jaspScale
instead of a numeric
and that we need to sprinkle some jasp2r
calls around.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I am not sure if I am overlooking a case that you have specifically in mind. But in general the code inside of modules will still run on base R types as the data is obtained using Unless of course we want to fully switch to JASP column types inside of analyses but then indeed we would need to implement this gradually because the current module code is not written for it. |
Well, unless the GitHub action is doing something wrong, this PR breaks all unit tests from all modules. So my use case is, do we need to change something in the modules (or jaspTools) to make this PR not break everything? If it needs to be done in each module, I would imagine we prefer to do that incrementally. |
I'll check what's wrong in the tests, the PR should definitely not break this. |
Ah, of course. I forgot that So this PR will need to be accompanied by a little change to Anyway, I see that some of the downstream tests did not even make it to run the tests because |
- this should not be an issue if we encode dataset anyway but still
I think I once fixed this error with so I made: jasp-stats/jasp-actions#30 |
… numeric is integer)
So in combination with jasp-stats/jaspTools#38 the common modules now pass their tests on my computer. I will test the rest as well just to make sure that all is really ok.* *Unless of course we do indeed want to make this something module maintainers can opt-in if they want syntax enabled, but I still think it would be nice to be able to switch everything everywhere all at once |
🤦♂️ this is not using the new jaspTools so of course all the tests fail... |
yes that's why I was running the tests manually on my computer. Can we specify a specific branch/commit of |
8b639a0
to
7bd7444
Compare
@vandenman @JorisGoosen this is basically outdated, right? Should I close this so that it doesn't hang around here forever? |
Nah leave it open, I'd still like to implement this someday. Perhaps if Joris adds another option for QML to enable this we can look at doing this more gradually though? |
fixes https://github.com/jasp-stats/INTERNAL-jasp/issues/2332
Not sure if this is really the best approach, but it does resolve the issue. I still need to check if really everything works as expected, I welcome any input.