Commit 1aed5326 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: importData excludeColnames arg is a list

parent beecb5ad
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment