ess.dream.data.simulated_diamond_sample#

ess.dream.data.simulated_diamond_sample(*, small=False)[source]#

Path to a GEANT4 CSV file for a diamond sample.

SciCat:

Sample:

  • Diamond powder

  • radius=0.0059 m

  • yheight=0.05-1e-9 m

  • material

    reflections of powder from “C_Diamond.laz” (McStas file) incoherent process with sigma=0.001 barns, packing_factor=1, unit cell volume=45.39 angstrom^3 absorption of 0.062 1/m

Container:

  • radius=0.006 m

  • yheight=0.05 m

  • material

    reflections of powder from “V.laz” (McStas file) incoherent process with sigma=4.935 barns, packing factor=1, unit cell volume=27.66 angstrom^3 absorption of 36.73 1/m

Parameters:

small (bool, default: False) –

If True, return a smaller version of the data file, with randomly selected rows. The small version of the file was created using the following code:

```python import numpy as np import pandas as pd

fname = dream.data.simulated_diamond_sample() df = pd.read_csv(fname, sep=’ ‘) inds = np.sort(np.random.choice(len(df), 10_000, replace=False)) df.iloc[inds].to_csv(’TEST_’ + fname.split(‘/’)[-1], sep=’ ‘, index=False) ```

Return type:

str