tidied translation tables
This commit is contained in:
@@ -65,8 +65,8 @@ class Spectrometer:
|
|||||||
raise Exception(
|
raise Exception(
|
||||||
'An exception occurred when polling for spectrometer data')
|
'An exception occurred when polling for spectrometer data')
|
||||||
else:
|
else:
|
||||||
responseorder = [i for i in 'RSTUVWGHIJKLABCDEF']
|
responseorder = list('RSTUVWGHIJKLABCDEF')
|
||||||
realorder = [i for i in 'ABCDEFGHRISJTUVWKL']
|
realorder = list('ABCDEFGHRISJTUVWKL')
|
||||||
response = pd.Series(
|
response = pd.Series(
|
||||||
[float(i) / 35.0 for i in rawresp[:-3].split(',')], index=responseorder)
|
[float(i) / 35.0 for i in rawresp[:-3].split(',')], index=responseorder)
|
||||||
return pd.DataFrame(response, index=realorder, columns=['uW/cm^2']).to_dict()['uW/cm^2']
|
return pd.DataFrame(response, index=realorder, columns=['uW/cm^2']).to_dict()['uW/cm^2']
|
||||||
|
|||||||
Reference in New Issue
Block a user