jepegit / cellpy

extract and tweak data from electrochemical tests of cells
MIT License
88 stars 30 forks source link

Original vs processed data #206

Open jepegit opened 2 years ago

jepegit commented 2 years ago

It would be handy to have two levels of data:

  1. the actual raw-data and step table (and maybe summary data).
  2. processed data - e.g. data that has been cleaned and maybe interpolated.

Things to consider:

c.is_original()  # True if data is not tweaked
c.revert_to_original(option="some-option")  # reset to original (actual data)
c.save(fname, only_original=True)
c.save(fname, only_processed=True, overwrite=False)  # make a new cellpy-file containing only processed data (with a new filename e.g. original_filename_ed001.h5)
c.load(fname, only_original=True)

# Not first priority:
c.to_SOME_FORMAT(original=True, processed=True)
c.history()  # prints the commands used to tweak the raw data.