Skip to content

Commit

Permalink
Fix source selection for old GUI versions
Browse files Browse the repository at this point in the history
  • Loading branch information
malfatti committed Sep 21, 2017
1 parent 2fc5752 commit 758c706
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Python3/SettingsXML.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def GetRecChs(File):
else:
if Proc['name'].split('/')[0] == 'Sources': SourceProc = P[:]

if 'CHANNEL_INFO' in Proc:
if 'CHANNEL_INFO' in Proc and Proc['CHANNEL_INFO']:
for Ch in Proc['CHANNEL_INFO']['CHANNEL'].values():
RecChs = FindRecProcs(Ch, Proc, RecChs)

Expand All @@ -106,7 +106,11 @@ def GetRecChs(File):
else:
ProcNames[Proc['NodeId']] = Proc['name']

SourceProc = Info['SIGNALCHAIN']['PROCESSOR'][SourceProc]['CHANNEL_INFO']['CHANNEL']
if Info['SIGNALCHAIN']['PROCESSOR'][SourceProc]['CHANNEL_INFO']:
SourceProc = Info['SIGNALCHAIN']['PROCESSOR'][SourceProc]['CHANNEL_INFO']['CHANNEL']
else:
SourceProc = Info['SIGNALCHAIN']['PROCESSOR'][SourceProc]['CHANNEL']

for P, Proc in RecChs.items():
for C, Ch in Proc.items():
if 'gain' not in Ch:
Expand Down

0 comments on commit 758c706

Please sign in to comment.