Skip to content

Commit

Permalink
FIX: Revert "valid line" condition, but keep the shorter name
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 20, 2024
1 parent b6f57b5 commit 75de7dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gradunwarp/core/coeffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ def coef_file_parse(cfile, txt_var_map):
with open(cfile) as coef_file:
for line in coef_file:
if re.match(r'^[^#]', line):
validline = line.lstrip(' \t').rstrip(';\n')
if validline:
fields = validline.split()
fields = line.lstrip(' \t').rstrip(';\n').split()
if fields:
log.info('Parsed : %s' % fields)
x = int(fields[1])
y = int(fields[2])
Expand Down

0 comments on commit 75de7dc

Please sign in to comment.