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
1aed5326
Commit
1aed5326
authored
Dec 28, 2021
by
Paul McCarthy
🚵
Browse files
BF: importData excludeColnames arg is a list
parent
beecb5ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
funpack/main.py
View file @
1aed5326
...
...
@@ -172,7 +172,8 @@ def doImport(args, mgr):
# an identifying suffix to the names
# of columns to be removed. This is
# then passed through as an exclusion
# pattern to the importData function.
# pattern to the importData function
# via its excludeColnames option.
if
args
.
remove_duplicates
:
suffix
=
importing
.
REMOVE_DUPLICATE_COLUMN_IDENTIFIER
renameDuplicates
=
True
...
...
@@ -211,6 +212,8 @@ def doImport(args, mgr):
variables
=
args
.
variable
categories
=
args
.
category
columns
=
args
.
column
if
suffix
is
None
:
excludeColnames
=
[]
else
:
excludeColnames
=
[
suffix
]
# Import data
with
util
.
timed
(
'Data import'
,
log
):
...
...
@@ -221,7 +224,7 @@ def doImport(args, mgr):
cattable
=
cattable
,
variables
=
variables
,
colnames
=
columns
,
excludeColnames
=
[
suffix
]
,
excludeColnames
=
excludeColnames
,
categories
=
categories
,
subjects
=
subjects
,
subjectExprs
=
exprs
,
...
...
Write
Preview
Markdown
is supported
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