Exemplo n.º 1
0
def fullFWSDataset():
    fws = processNexus(path + "/sample_data/lys_part_01_FWS.nxs")
    res = processNexus(path + "/sample_data/vana_QENS_280K.nxs")
    ec = processNexus(path + "/sample_data/empty_cell_FWS_280K.nxs")
    bkgd = processNexus(path + "/sample_data/D2O_FWS_280K.nxs")

    return fws, res, ec, bkgd
Exemplo n.º 2
0
def fullQENSDataset():
    qens = processNexus(path + "/sample_data/lys_part_01_QENS_before_280K.nxs")
    res = processNexus(path + "/sample_data/vana_QENS_280K.nxs")
    ec = processNexus(path + "/sample_data/empty_cell_QENS_280K.nxs")
    bkgd = processNexus(path + "/sample_data/D2O_QENS_280K.nxs")

    return qens, res, ec, bkgd
Exemplo n.º 3
0
def test_import_fws_nexus():
    dataPath = path + "/sample_data/lys_part_01_FWS.nxs"
    data = processNexus(dataPath, True)
    assert data.shape == (21, 18, 4)
Exemplo n.º 4
0
def test_import_qens_nexus():
    dataPath = path + "/sample_data/empty_cell_QENS_280K.nxs"
    data = processNexus(dataPath)
    assert data.shape == (1, 18, 1024)