Spaces:
Sleeping
Sleeping
rosyvs
commited on
Commit
·
0607a72
1
Parent(s):
565db3d
Fix file reading in readELANtsv function to handle newlines and quoting
Browse files
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
utils.py
CHANGED
|
@@ -651,9 +651,9 @@ def sec_to_HHMMSS(seconds):
|
|
| 651 |
|
| 652 |
|
| 653 |
def readELANtsv(file, fmt=None):
|
| 654 |
-
with open(file) as in_file:
|
| 655 |
|
| 656 |
-
reader = csv.reader(in_file, delimiter="\t")
|
| 657 |
|
| 658 |
skiprows=0
|
| 659 |
row=next(reader)
|
|
|
|
| 651 |
|
| 652 |
|
| 653 |
def readELANtsv(file, fmt=None):
|
| 654 |
+
with open(file,'r',newline='') as in_file:
|
| 655 |
|
| 656 |
+
reader = csv.reader(in_file, delimiter="\t", quoting=csv.QUOTE_NONE)
|
| 657 |
|
| 658 |
skiprows=0
|
| 659 |
row=next(reader)
|