Skip to content

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

Description

@r-mouta

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions