Skip to content

smallbaselineapp fails to read updated config file #551

@bbuzzanga

Description

@bbuzzanga

I'm trying to exclude a bunch of inferferograms using e.g.:
mintpy.network.excludeIfgIndex = 67,68,84
However, it can't read the input:

File "/Users/bb/Software_InSAR/MintPy_git/mintpy/modify_network.py", line 142, in <listcomp>
    c = sorted([int(i) for i in idx.split(':')])
ValueError: invalid literal for int() with base 10: '[67' 

That extra '[' is added early on, my guess is when reading the template file. More specifically, adding print (value) on line 172 of modify_network.py results in the string: [67, 68, 84] for key = excludeIfgIndex

-- UPDATE --

This appears to not be the root of the problem. I originally entered mintpy.network.excludeIfgIndex = [67,68,84] , which caused the bug above. However, correcting the error (and indeed setting mintpy.network.excludeIfgIndex = None) causes the same error above to be raised. So for some reason, MintPy is not correctly reading the input file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions