Skip to content
Snippets Groups Projects
Commit eb735aa0 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

fixed ess.fieldmap.convert_3d_to_1d

parent b942513e
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,7 @@ def convert_3d_to_1d(path: str, map_name: str, map_type: str = "electric", file_
field_1d = field_on_axis(header, field, 3, x_on_axis=dist_from_axis)[1]
if dist_from_axis:
# Here we give T/m rather than T given for 3D field map
field_1d = field_1d / dist_from_axis
field_1d = (field_1d - field_on_axis(header, field, 3)[1]) / dist_from_axis
header_1d = np.array([header[0], header[1], header[-1]])
file_path_out = f"{file_path[:-4]}_1D.{file_end_out}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment