Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-krishna committed Dec 5, 2023
1 parent 4e7f43d commit d83a2ee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions times_reader/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ def to_tag(s: str) -> Tag:

valid_column_names = {}
row_comment_chars = {}
discard_if_empty = list()
discard_if_empty = []

for tag_info in veda_tags_info:
tag_name = to_tag(tag_info["tag_name"])
if "valid_fields" in tag_info:
tag_name = to_tag(tag_info["tag_name"])
discard_if_empty.append(tag_name)

valid_column_names[tag_name] = {}
Expand All @@ -320,10 +320,8 @@ def to_tag(s: str) -> Tag:
"row_ignore_symbol"
]

# TODO: Account for differences in valid field names with base_tag
for tag_info in veda_tags_info:
# TODO: Account for differences in valid field names with base_tag
if "base_tag" in tag_info:
tag_name = to_tag(tag_info["tag_name"])
base_tag = to_tag(tag_info["base_tag"])
if base_tag in valid_column_names:
valid_column_names[tag_name] = valid_column_names[base_tag]
Expand Down

0 comments on commit d83a2ee

Please sign in to comment.