This repository was archived by the owner on Sep 28, 2022. It is now read-only.
Commit d81705a
Making guessParser less error-prone
When auto detecting the column type of such a column, the previous
guessParser implementation produced exceptions:
-1
0
-1.0
1.0
0.0
infinity
-infinity
+Nan
NaN
-NaN
1.23e7
13.8f
57269d
Therefore, now the only number format which will be guessed by
guessParser is Double. Also, when testing this with imagej-server, the
Strings "infinity" and "Nan" where used which are not compatible with
Double::valueOf, therefore they are replaced with the compatible
capitalization. Maybe there is a better way to do this..1 parent 2cc51f6 commit d81705a
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 251 | | |
260 | 252 | | |
261 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
262 | 257 | | |
263 | 258 | | |
264 | 259 | | |
| |||
0 commit comments