andrejewski / periodic-table

Periodic elements data
ISC License
148 stars 96 forks source link

Fluorine's cpkHexColor #19

Open a-ogilvie opened 6 years ago

a-ogilvie commented 6 years ago

Is there an error with fluorine's cpkHexColor? It's listed as '9e+51', which isn't hexadecimal (and is way out of the range of the largest hex number writeable in 6 characters).

andrejewski commented 6 years ago

Issue confirmed. The source CSV has the value "90E050" which the CSV-to-JSON parser misinterprets as a number.

a-ogilvie commented 6 years ago

Just spotted a problem with Erbium too, the colour data in the csv reads '0.00E+00'.

sabidhasan commented 6 years ago

I can create a Pull Request for this, if you guys think it's worth while. Should be a pretty simple fix.