-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Empty values and column-data-storage refactor #5367
Empty values and column-data-storage refactor #5367
Conversation
51a94ae
to
b41342d
Compare
ba5831e
to
ddd1efa
Compare
a253da8
to
785fcde
Compare
c463ac4
to
3885155
Compare
I started a bunch of builds under I think this is probably ready now? |
Its maybe not completely done, but close enough that you guys could start reviewing it. |
the build test failed maybe also failing on windows. |
|
a88bea3
to
6beffc4
Compare
Oops! Edit: shouldve set columntype with the default values... |
Aah moving labels also doesnt work anymore for columns where all values are convertible to double |
Some issues:
Nice feature to see the labels for a scale column (if they are not the same as the value). It could be also nice to see the value of nominal or ordinal column, if the label and the value is not the same. |
If a cell has a custom empty value, in a Edit mode when clicking on this cell, this removes the custom empty value. For example, add 1 as empty value for the facFive column. Click on a cell that has 1 as value (it is displayed in grey), and go to another cell: the value 1 is removed.
also makes sure to show the variableswindow and thus code-editor on insertion only for computed columns. This to allow for rapid addition of computed columns Also refactors a bit of the menu code in DataTableView
draghand cursor for cells ;) use same double formatting for label undo for label originalvalue should remember label and set it back
fix Process data library file so it will actually load
a3f295c
to
257557f
Compare
As requested by Bruno in the PR And by Thomas in jasp-stats/jasp-issues#1786
set some code font in a few places dont set columntype to unknown when running setDefaultValues add a codepath for forcing all columns to the same columntype for computed columns
Ive also added a new feature to computed columns, see: https://github.com/jasp-stats/INTERNAL-jasp/issues/2487 |
…tely empty scalar cells also malkes sure the keep and convert input columntypes button always actually shows the correct value
When reading a JASP file from 0.18.0 where for example 0 was set as an empty value, JASP displays the values that had 0 as empty values in the data view, but does not display the original value (0) in grey, and it does not set in the workspace that 0 is an empty value. Sorry bad manipulation. It works: the 0 is set as empty value in the workspace. Only minor thing is that the if 0 is unset, the cells are not set back to 0: the original value (0) is lost. |
I have built it with the last commits, and now if I load a JASP file from 0.18.0, the workspace empty values are empty! |
I only made an effort to support pre-0.18.0 versions of JASP and specifically 0.18.3. |
Empty values should be stored in the data and per column.
To do this properly it required a lot of changes to the underlying code.
Ill make sure the documentation for the classes at least resembles what is going now ;)
Possible problems:
[X] importing from 0.17.3 and earlier (converting from emptyValuesMap in metadata.json)
Ignore: importing from 0.18.2 (broken emptyvalues (i might just ignore it))
[X] importing from 0.18.3 (breaking up emptyvalues into per workspace and column)
[X]] also making sure that we can still import scalar columns with a non-scalar value in them that is not convertible to a double (like in the testcsv tsv ods etc)
Should probably be a separate PR:
[] Add locale support (should still be done but testing will take time anyway)[] importing a nominal/ordinal now as scalar means getting the ints we wrote to the _ints column. We should probably try to use the "value" shown in the label-editor instead! :o This will help with jasp-stats/jasp-issues#2530 or jasp-stats/jasp-issues#2325 ) (But most of that will probably be separate)