Skip to content

Commit

Permalink
Merge pull request #89 from ut-issl/main
Browse files Browse the repository at this point in the history
Release v0.1.1
  • Loading branch information
flap1 authored May 23, 2024
2 parents 5734f1f + 9e525e1 commit 0024bbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions c2a_generator/eh_rules_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ def generate(src_path: str, dest_path: Path, base_id: int) -> None:
reader = csv.reader(csv_file)
headers = next(reader)
dict_reader = csv.DictReader(csv_file, fieldnames=headers)
name_list = []
for row in dict_reader:
if not any(row):
continue
try:
if row["name"] in name_list:
continue
header_file.write(f' {row["name"]} = {base_id},\n')
name_list.append(row["name"])
base_id += 1
except ValueError:
continue
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "c2a_generator"
version = "0.1.0"
version = "0.1.1"
description = "Add your description here"
authors = [
{ name = "flap1", email = "[email protected]" }
Expand Down

0 comments on commit 0024bbf

Please sign in to comment.