Skip to content

Commit

Permalink
Use valid field info from base_tags in modified tags
Browse files Browse the repository at this point in the history
  • Loading branch information
olejandro committed Dec 3, 2023
1 parent 370de84 commit 16cffe8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions times_reader/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,16 @@ 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:
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]
if base_tag in row_comment_chars:
row_comment_chars[tag_name] = row_comment_chars[base_tag]

return valid_column_names, row_comment_chars

@staticmethod
Expand Down

0 comments on commit 16cffe8

Please sign in to comment.