You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When one tries to convert a csv file resulting from measurements without temperature control, the following error is output: ValueError: could not convert string to float: '-'
The error occurs because the code assumes that the values in the 9th column (8th starting from the 0th column) are numbers. However, when no temperature control is used during measurements, there is only a dash instead of the temperature value.
The code should be able to distinguish between both file possibilities (with or without temperature control) and handle the file conversion accordingly.
The csv file that triggered this error is attached. The extension has been changed to .txt, but the file structure remains unaltered.
r-mouta
changed the title
Error while trying to convert csv files resulting from measurements without temperature control
Error while trying to convert csv files resulting from measurements carried out without temperature control
May 8, 2020
This error has been corrected, however, the vector variable is a list of values listed for temperature and is generating values for temperature. I will correct this error.
When one tries to convert a csv file resulting from measurements without temperature control, the following error is output:
ValueError: could not convert string to float: '-'
The error occurs because the code assumes that the values in the 9th column (8th starting from the 0th column) are numbers. However, when no temperature control is used during measurements, there is only a dash instead of the temperature value.
The code should be able to distinguish between both file possibilities (with or without temperature control) and handle the file conversion accordingly.
The csv file that triggered this error is attached. The extension has been changed to .txt, but the file structure remains unaltered.
EPS_air_10mV_VLong_1s_30ppd__1MHz_10KHz_Int__10kHz_1Hz_Nor.txt
The text was updated successfully, but these errors were encountered: