Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
funpack
Commits
909adaaf
Commit
909adaaf
authored
Apr 24, 2019
by
Paul McCarthy
🚵
Browse files
RF: has_header made more lenient for up to 6 columns
parent
f2a989ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
ukbparse/fileinfo.py
View file @
909adaaf
...
...
@@ -144,6 +144,8 @@ def has_header(sample,
# column counts.
threshold
=
collections
.
defaultdict
(
lambda
:
1
)
threshold
[
2
]
=
0
threshold
[
4
]
=
0
threshold
[
6
]
=
0
return
colcount
>=
threshold
[
len
(
coltypes
)]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment