cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 26 forks source link

Save data in JSON #97

Closed lpatiny closed 5 years ago

lpatiny commented 5 years ago

When drag / drop a jcamp we should save the data not in original but directly in data

{
  "data1d": [
    {
      "data": {},
      "id": "0abwvynpah97",
      "source": {
        "jcamp": null,
        "jcampURL": null,
        "original": {
          "x": [
            0.5914089613428362,
            0.5915260807910494,
hamed-musallam commented 5 years ago

@lpatiny but put in your concerns that we use data for the last status of it after we apply filters, you aware of this? so I put the original data and we can then apply the filter on it until reaching a specific point that we want.

lpatiny commented 5 years ago

You are right, thanks for reminding me this !