Change Type

Support questions for Flow CSV Viewer and Editor.
Post Reply
Vojvoda
Posts: 2
Joined: Thu Mar 11, 2021 11:48 am

Change Type

Post by Vojvoda »

Hi! I need to change type of parameters in a couple of csv files. I don't know if its possible or how...
Thanks!
Attachments
ej2.PNG
ej2.PNG (50.22 KiB) Viewed 10871 times
ej1.PNG
ej1.PNG (48.41 KiB) Viewed 10871 times
Waveworks
Posts: 175
Joined: Thu Sep 05, 2019 1:05 pm

Re: Change Type

Post by Waveworks »

Hello! The data type is detected automatically based on the CSV content after the header line (the first line) and can't be changed. In your case, it looks like the problem is that the second line in the CSV file contains units, and unfortunately this is taken as string data items, so the data type becomes string. You have two options:
  1. Remove the line with units in a text editor.
  2. Use formulas to convert to new variables of the desired type, e.g. ActiveSetpt_float = float(ActiveSetpt).
Hope this helps!
Vojvoda
Posts: 2
Joined: Thu Mar 11, 2021 11:48 am

Re: Change Type

Post by Vojvoda »

Thanks!

Now is working properly.
Attachments
2021-03-15 12_14_50-Flow CSV Viewer 1.0.4 - MT3Mon20210311130000.csv.png
2021-03-15 12_14_50-Flow CSV Viewer 1.0.4 - MT3Mon20210311130000.csv.png (24.33 KiB) Viewed 10850 times
Post Reply