Skip to content

Commit

Permalink
Merge pull request #308 from johntruckenbrodt/bugfix/snap_bandmath
Browse files Browse the repository at this point in the history
[snap.auxil.parse_node] remove weird placeholder XML node in BandMaths
  • Loading branch information
johntruckenbrodt committed May 14, 2024
2 parents 777d189 + 01c08ff commit 874b457
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 874b457

Please sign in to comment.