diff options
author | BonfaceKilz | 2022-04-12 13:24:08 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-04-12 13:26:57 +0300 |
commit | 39afc680ea3eac81a2e5fff763c1cd1a51156bb5 (patch) | |
tree | d3be1a727d9563fd007210fad42f269846c17a69 /gn3 | |
parent | 789d483fe8877c08a07d0f94cb22e3e33a5888bc (diff) | |
download | genenetwork3-39afc680ea3eac81a2e5fff763c1cd1a51156bb5.tar.gz |
Delete "get_allowable_sampledata_headers"
* gn3/csvcmp.py (get_allowable_sampledata_headers): Delete it.
* tests/unit/test_csvcmp.py: Remove "get_allowable_sampledata_headers" import.
(test_get_allowable_csv_headers): Delete it.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/csvcmp.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gn3/csvcmp.py b/gn3/csvcmp.py index 6ad84ef..24cbee0 100644 --- a/gn3/csvcmp.py +++ b/gn3/csvcmp.py @@ -123,15 +123,6 @@ def fill_csv(csv_text, width, value="x"): return "\n".join(data) -def get_allowable_sampledata_headers(conn: Any) -> List: - """Get a list of all the case-attributes stored in the database""" - attributes = ["Strain Name", "Value", "SE", "Count"] - with conn.cursor() as cursor: - cursor.execute("SELECT Name from CaseAttribute") - attributes += [attributes[0] for attributes in cursor.fetchall()] - return attributes - - def extract_invalid_csv_headers(allowed_headers: List, csv_text: str) -> List: """Check whether a csv text's columns contains valid headers""" csv_header = [] |