Skip to content

Fix Python 3 compatibility : replace iteritems() with items() and fix IndexError on empty parameters#25

Open
alegio98 wants to merge 1 commit into
snap-contrib:mainfrom
alegio98:fix/graph-bug
Open

Fix Python 3 compatibility : replace iteritems() with items() and fix IndexError on empty parameters#25
alegio98 wants to merge 1 commit into
snap-contrib:mainfrom
alegio98:fix/graph-bug

Conversation

@alegio98

@alegio98 alegio98 commented Apr 2, 2026

Copy link
Copy Markdown

While using snapista with Python3 on a DInSAR pipeline, I encountered two bugs.

  1. AttributeError: dict object has no attribute iteritems in graph.py . Fixed by switching to .items().
  2. IndexError when checking getattr(operator, param)[0] != "<" for empty string parameters. Fixed by checking the length/type safely before accessing index 0. I have attached the fixes.

@fabricebrito

Copy link
Copy Markdown
Member

Hello! Thank you for your time. Snapista is now integrated in SNAP and maintained by the SNAP maintainers. My recommendation is to use SNAP with python configured and you will have access to snapista

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants