chemistry / chemical-libraries

Common Chemical Libraries
MIT License
11 stars 3 forks source link

Adding more information to elements? #3

Open RobRoseKnows opened 5 years ago

RobRoseKnows commented 5 years ago

Hi, I'm using this library for a project I'm working on and I'm loving the work you've done so far. However, I was hoping to include more information for each element. I wanted to include electron configurations and electronegativity, pretty much everything listed in the info box of Wikipedia for elements. Should this be in a different package than the @chemistry/elements package?

vreshch commented 5 years ago

I think will be better to create separate package. This package is included to set of other, frontend and backend so do not want this size to grow. Could you specify data format you prefer for additional information ?

RobRoseKnows commented 5 years ago

Alright, is there a command to create a new package? I'm not familiar with Lerna. I was thinking for electron configuration I'd do some sort of JSON or TS file like you have already, in the following format, with Gold ([Xe] 4f^14 5d^10 6s^1) given as example:

'Au': {
  'base': 'Xe',
  4: {
    'f': 14,
  },
  5: {
    'd': 10,
  }
  6: {
    's': 1,
  }
}

Source: https://dx.doi.org/10.18434/T42P4C