ignore empty lines
This commit is contained in:
parent
e9a8a3c7b7
commit
c7a388d894
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ def data_reader(path: str, delimiter: str = ","):
|
||||||
with open(path) as csv_file:
|
with open(path) as csv_file:
|
||||||
data = csv_reader(csv_file, delimiter=delimiter)
|
data = csv_reader(csv_file, delimiter=delimiter)
|
||||||
for system in data:
|
for system in data:
|
||||||
|
if len(system) == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
name = system[0]
|
name = system[0]
|
||||||
base = list(system[1])
|
base = list(system[1])
|
||||||
axiom = system[2]
|
axiom = system[2]
|
||||||
|
|
Reference in a new issue