pycroscopy / pycroscopy

Scientific analysis of nanoscale materials imaging data

Home Page:https://pycroscopy.github.io/pycroscopy/about.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BEOdfTranslator failure

ramav87 opened this issue · comments

BE ODF translator unable to translate certain old files collected in 2010. This error was found for nonlinearity measurements:


KeyError Traceback (most recent call last)
in
4 translator = px.translators.BEodfTranslator()
5
----> 6 translator.translate(file_path)

//anaconda3/lib/python3.7/site-packages/pycroscopy/io/translators/be_odf.py in translate(self, file_path, show_plots, save_plots, do_histogram, verbose)
251
252 if isBEPS:
--> 253 (UDVS_labs, UDVS_units, UDVS_mat) = self.__build_udvs_table(parm_dict)
254
255 # Remove the unused plot group columns before proceeding:

//anaconda3/lib/python3.7/site-packages/pycroscopy/io/translators/be_odf.py in build_udvs_table(self, parm_dict)
1014 BE_amp = parm_dict['BE_amplitude
[V]']
1015
-> 1016 VS_amp = parm_dict['VS_amplitude
[V]']
1017 VS_offset = parm_dict['VS_offset_[V]']
1018 # VS_read_voltage = parm_dict['VS_read_voltage_[V]']

KeyError: 'VS_amplitude_[V]'

Will explore this in more detail.

Fixed, and appears to be working.