xmcd_projection.data_loading¶
- xmcd_projection.data_loading.load_mesh_magnetisation(file_path, scale=1)¶
Gets the mesh magnetisation from a csv file containing columns for points (named “Points:<0-2>”) and magnetisation (named “m:<0-2>”).
- Parameters
file_path (str) – Path to the file.
scale (float, optional) – Scalar by which to scale coordinates. Default is 1.
- Returns
magnetisation ((n,3) array), points ((n,3), array)
- Return type
tuple