larch tests fail
https://gitlab.esrf.fr/workflow/ewoksapps/est/-/jobs/462588
spectrum_cu_from_larch = <est.core.types.spectrum.Spectrum object at 0x7f315be26510>
@pytest.mark.skipif(larch is None, reason="xraylarch not installed")
def test_single_spectrum(spectrum_cu_from_larch):
"""Make sure computation on one spectrum is valid"""
configuration = {
"window": "hanning",
"kweight": 2,
"kmin": 3,
"kmax": 13,
"dk": 1,
}
# for xftf we need to compute pre edge before
> process_spectr_autobk(spectrum_cu_from_larch, configuration={}, overwrite=True)
src/est/tests/larch/test_xftf.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/est/core/process/larch/autobk.py:83: in process_spectr_autobk
**opts
/usr/local/lib/python3.7/site-packages/larch/larchlib.py:532: in wrapper
result = fcn(*args, **kwargs)
/usr/local/lib/python3.7/site-packages/larch/xafs/autobk.py:119: in autobk
pre_edge(energy, mu, group=group, _larch=_larch, **pre_kws)
/usr/local/lib/python3.7/site-packages/larch/larchlib.py:532: in wrapper
result = fcn(*args, **kwargs)
/usr/local/lib/python3.7/site-packages/larch/xafs/pre_edge.py:334: in pre_edge
_atsym, _edge = guess_edge(group.e0)
/usr/local/lib/python3.7/site-packages/xraydb/xray.py:665: in guess_edge
xdb = get_xraydb()
/usr/local/lib/python3.7/site-packages/xraydb/xray.py:156: in get_xraydb
_xraydb = XrayDB()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <xraydb.xraydb.XrayDB object at 0x7f315be1cc50>
dbname = '/usr/local/lib/python3.7/site-packages/xraydb/xraydb.sqlite'
read_only = True
def __init__(self, dbname='xraydb.sqlite', read_only=True):
"connect to an existing database"
if not os.path.exists(dbname):
parent, _ = os.path.split(__file__)
dbname = os.path.join(parent, dbname)
if not os.path.exists(dbname):
raise IOError("Database '%s' not found!" % dbname)
if not isxrayDB(dbname):
> raise ValueError("'%s' is not a valid X-ray Database file!" % dbname)
E ValueError: '/usr/local/lib/python3.7/site-packages/xraydb/xraydb.sqlite' is not a valid X-ray Database file!
/usr/local/lib/python3.7/site-packages/xraydb/xraydb.py:84: ValueError