Skip to content
Snippets Groups Projects
Verified Commit e5b11b26 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Adding separator to generated cfood.

parent 1813a3a4
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!176misc. small changes
Pipeline #52446 passed
......@@ -196,8 +196,24 @@ cfood: str
defs.append(def_str)
del defs
sep = repr(sniffed.delimiter)
sep = f'"{sep[1:-1]}"'
match_str = f"""'.*[ct]sv'
sep: {sep}
# "header": [int]
# "names": [str]
# "index_col": [int]
# "usecols": [int]
# "true_values": [str]
# "false_values": [str]
# "na_values": [str]
# "skiprows": [int]
# "nrows": [int]
# "keep_default_na": [bool]
"""
cfood_str = (_CustomTemplate(CFOOD_TEMPLATE).substitute({"file": "CSVTableConverter",
"match": ".*\\[ct]sv"})
"match": match_str})
+ prefix[2:] + "ColumnValue:\n" + "".join(defs_col_value)
+ prefix[2:] + "ColumnValueReference:\n" + "".join(defs_col_value_ref)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment