cellpy icon indicating copy to clipboard operation
cellpy copied to clipboard

Original vs processed data

Open jepegit opened this issue 3 years ago • 0 comments

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:

  • use some hashing algorithm to compare processed vs actual
  • be able to revert to the original raw data
  • how will this work when allowing to do c.update()?
  • keep track of the processing steps
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.

jepegit avatar Apr 18 '22 15:04 jepegit