tomwer.core.utils.spec.getClosestEnergy#

tomwer.core.utils.spec.getClosestEnergy(scan, refFile=None)#

Parse files contained in the given directory to get information about the incoming energy for the serie iSerie

Parameters:
  • scan – directory containing the acquisition

  • refFile – the refXXXX_YYYY which should contain information about the energy.

Returns:

the energy in keV or none if no energy found