Skip to content

Commit

Permalink
readUCI.py -- small fix for network block
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDudaRESPEC authored and aufdenkampe committed Nov 10, 2020
1 parent 0e73c20 commit ce4952d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HSP2tools/readUCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ def network(info, lines):
d = parseD(line, parse['NETWORK','na'])
if d['SVOL'] in ops and d['TVOL'] in ops:
d['SVOLNO'] = f"{d['SVOL'][0]}{int(d['SVOLNO']):03d}"
d['TVOLNO'] = f"{d['TVOL'][0]}{int(d['TVOLNO']):03d}"
if 'TVOLNO' in d:
d['TVOLNO'] = f"{d['TVOL'][0]}{int(d['TVOLNO']):03d}"
elif 'TOPFST' in d:
d['TOPFST'] = f"{d['TVOL'][0]}{int(d['TOPFST']):03d}"
lst.append(d)
return DataFrame(lst, columns=d) if lst else DataFrame()

Expand Down

0 comments on commit ce4952d

Please sign in to comment.