Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/sort-ontologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_sort_order(grid):
sort_order = []
if ".csv" in grid:
separator = ","
elif ".tsv" or ".txt" in grid:
elif ".tsv" in grid or ".txt" in grid:
separator = "\t"
else:
print("%s must be tab- or comma-separated.", file=sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion util/validate-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def save_grid(metadata_grid, headers, grid_outfile):
a sorted table of the full results."""
if ".csv" in grid_outfile:
separator = ","
elif ".tsv" or ".txt" in grid_outfile:
elif ".tsv" in grid_outfile or ".txt" in grid_outfile:
separator = "\t"
else:
print("Grid file must be CSV, TSV, or TXT", file=sys.stderr)
Expand Down