Skip to content

Commit

Permalink
Merge pull request #11 from selfdecode/fix/snps-csv-source
Browse files Browse the repository at this point in the history
fix snps csv source
  • Loading branch information
adrianodemarino authored Dec 7, 2022
2 parents 76b5ca2 + 0af6fd4 commit 9d7b0ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/snps/io/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,15 +1216,13 @@ def read_snps_csv(self, file, comments, compression):
dict
result of `read_helper`
"""
source = ""
source = "csv"
phased = False
build = 0

comment_lines = comments.split("\n")
for comment1 in comment_lines:
if "Source(s):" in comment1:
source = comment1.split("Source(s):")[1].strip()
elif "Phased:" in comment1:
if "Phased:" in comment1:
if comment1.split("Phased:")[1].strip() == "True":
phased = True
elif "Build:" in comment1:
Expand Down

0 comments on commit 9d7b0ff

Please sign in to comment.