cellpy
cellpy copied to clipboard
Original vs processed data
It would be handy to have two levels of data:
- the actual raw-data and step table (and maybe summary data).
- 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.