Xrf fit

I'm assuming that this function runs once at import time to construct the energy-dependent element info?  If so, shouldn't this IOError be caught by whatever initializes this data structure, not just logged and ignored?  Also, you'll get an error on line 291 if this IOError is raised.