ess.snspowder.powgen.data.powgen_tutorial_vanadium_file#

ess.snspowder.powgen.data.powgen_tutorial_vanadium_file(*, small=False)[source]#

Return the path to the POWGEN vanadium file.

Parameters:

small (bool, default: False) –

If True, return a smaller file for unit tests. The small version of the file was created using the following code, which keeps only 7 columns out of 154 (154 / 7 = 22):

```python import scipp as sc

fname = ‘PG3_4866_event.h5’ dg = sc.io.load_hdf5(fname)

sizes = {“bank”: 23, “column”: 154, “row”: 7}

def foldme(x, dim):
return x.fold(dim=dim, sizes=sizes)[‘column’, ::22].flatten(

dims=list(sizes.keys()), to=dim)

small = sc.DataGroup({

‘data’: foldme(dg[‘data’], ‘spectrum’), ‘proton_charge’: dg[‘proton_charge’][‘pulse_time’, ::10]

}) sc.io.save_hdf5(small, ‘TEST_PG3_4866_event.h5’) ```

Return type:

str