Torque sensor calibration data : <-Missing Value 2. Torque acceptance criteria (2 parts Nm) : 4.00Īxial load calibration date : <-Missing Value 1. ![]() Reader = csv.reader(txtfile, delimiter = '|') With path.open() as txtfile, path.with_suffix(".csv").open(mode="w",newline='') as csvfile: My code is pretty simple import csv, pathlibįor path in pathlib.Path(".").glob("*.txt"): ![]() Since I dont have acess to the source, i cant modify how the txt are generated, so how can I modify my code to manage this situation? Probably the newline='' is where my problem is. I added the missing 0 manually and then everything works fine, but stops again in the next txt with the same missing value. csv files but I've noticed the csv contain just half the info, this due into one column of data of the txt file, a value is missing instead of being cero. txt files on a folder and convert them to. ![]() I made a python script hat takes all the.
0 Comments
Leave a Reply. |