Skip to content

Commit

Permalink
Code structure clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
hujambo-dunia committed Jul 20, 2024
1 parent 7529687 commit 19f1f4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/datatypes/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -1814,15 +1814,14 @@ def set_meta(
with open(dataset.get_file_name()) as dataset_fh:
comment_lines = 0
column_headers = None
cleaned_column_types = None
cleaned_column_types = []
number_of_columns = 0
for i, line in enumerate(dataset_fh):
line = line.strip("\n")
if line.startswith("#"):
if line.startswith("#h"):
column_headers = line.split("\t")[1:]
elif line.startswith("#f"):
cleaned_column_types = []
for column_type in line.split("\t")[1:]:
if column_type == "Hex":
cleaned_column_types.append("str")
Expand Down

0 comments on commit 19f1f4d

Please sign in to comment.