From 0af6fd4a1417c8e0507775e559f1d2d945444ab5 Mon Sep 17 00:00:00 2001 From: Sandra Bohn <87330552+sandra-selfdecode@users.noreply.github.com> Date: Tue, 6 Dec 2022 09:25:51 -0800 Subject: [PATCH] fix snps csv source --- src/snps/io/reader.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/snps/io/reader.py b/src/snps/io/reader.py index a8037dc..bcb44f6 100644 --- a/src/snps/io/reader.py +++ b/src/snps/io/reader.py @@ -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: