Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to convert csv files resulting from measurements carried out without temperature control #1

Open
r-mouta opened this issue May 8, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@r-mouta
Copy link

r-mouta commented May 8, 2020

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

@r-mouta r-mouta added the bug Something isn't working label May 8, 2020
@r-mouta 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
@jherfson
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants