epoc-ed / GUI

Graphical User Inteface for JungFrau integrated in JEOL TEM
0 stars 0 forks source link

hdf5_file.py - separate header from init? #55

Open tgruene opened 2 months ago

tgruene commented 2 months ago

The init function in hdf5_file.py sets some basic entries for the HDF5 file. Would it be a good idea to separate this into one or more functions? The functions could distinguish static from dynamic information, and sub-distinguish information from the TEM (e.g. PYJEM.TEM3.EOS information, detector distance, magnification...) and from the writing process (number of frames), and thirdly information derived from a combination of both, like the oscillation width, DATA_RANGE, STARTING_ANGLE, etc. Maybe one could turn the content of this issue into a work-sheet to first organise the organisation of function, before actually coding it?

erikfrojdh commented 1 day ago

Slightly outdated since we write through jfj and then update the metadata. Still should review the content and how to trigger the update.