Skip to content

Commit

Permalink
[snap.auxil.parse_node] remove weird placeholder XML node in BandMaths
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed May 8, 2024
1 parent fbc0375 commit e565bec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyroSAR/snap/auxil.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def parse_node(name, use_existing=True):
'validExpression', 'spectralBandIndex']:
el = tband.find('.//{}'.format(item))
tband.remove(el)
for item in ['targetBands', 'variables']:
elem = tree.find(f'.//{item}')
pl = elem.find('.//_.002e..')
elem.remove(pl)
tree.find('.//parameters').set('class', 'com.bc.ceres.binding.dom.XppDomElement')
node = Node(node)

Expand Down

0 comments on commit e565bec

Please sign in to comment.