Skip to content
Snippets Groups Projects
Commit 8790e7c0 authored by Mikkel Strange's avatar Mikkel Strange
Browse files

fix unit conv

parent cbef0d5e
No related branches found
No related tags found
No related merge requests found
...@@ -153,11 +153,11 @@ def parse(filename): ...@@ -153,11 +153,11 @@ def parse(filename):
def add_3d_array(values, kind, unit): def add_3d_array(values, kind, unit):
with o(p, 'section_volumetric_data'): with o(p, 'section_volumetric_data'):
p.addArrayValues('volumetric_data_origin', p.addArrayValues('volumetric_data_origin',
origin, 'angstrom') c(origin, 'angstrom'))
p.addArrayValues('volumetric_data_displacements', p.addArrayValues('volumetric_data_displacements',
displacements, 'angstrom') c(displacements, 'angstrom'))
p.addArrayValues('volumetric_data_values', p.addArrayValues('volumetric_data_values',
cu(values, unit)) c(values, unit))
p.addValue('volumetric_data_kind', kind) p.addValue('volumetric_data_kind', kind)
# H.atom.ulm.gpw test can be used to verify that pseudodensity # H.atom.ulm.gpw test can be used to verify that pseudodensity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment