-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[FIX] Writers: Store nans in StringVariable as empty strings instead of 'nan' #6670
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6670 +/- ##
=======================================
Coverage 88.10% 88.11%
=======================================
Files 321 321
Lines 69950 69951 +1
=======================================
+ Hits 61631 61634 +3
+ Misses 8319 8317 -2 |
I think this should be made specific to CSV writer. Any reason you did not make it that way? Tab writers work well as they are and this fix would there only introduce new ambiguities. |
Ignore the previous comment. I need to check what did it do in write/read combination. If the old .tab behavior was already broken, I have no objections. |
Our tab saving was also broken, because it saved a string |
In fixing this, switched string handling from fixed-length to variable length https://docs.h5py.org/en/stable/special.html#variable-length-strings
In fixing this, switched string handling from fixed-length to variable length https://docs.h5py.org/en/stable/special.html#variable-length-strings
In fixing this, switched string handling from fixed-length to variable length https://docs.h5py.org/en/stable/special.html#variable-length-strings
In fixing this, switched string handling from fixed-length to variable length https://docs.h5py.org/en/stable/special.html#variable-length-strings
In fixing this, switched string handling from fixed-length to variable length https://docs.h5py.org/en/stable/special.html#variable-length-strings
Issue
Fixes #6527.
Description of changes
The function that creates a string representation for storing values in file didn't expect that a
StringVariable
can benp.nan
. Now it does.Our handling of StringVariable unknowns is a mess; the Table widget will apparently sometimes show
nan
. This must be solved in general. The present PR only fixes the crash in saving of Excel files.Includes