Closed florianbeyer closed 2 years ago
I've found my mistake:
before=variable.id
The .id was missing...
Hi @florianbeyer. Glad you could figure it out before I was able to answer. I agree, it would be more intuitive if one could also just pass the node object instead of its ID.
This should be quite straightforward to realize for anyone who likes to contribute..
Hi @johntruckenbrodt ,
Indeed, it is straightforward.
In my code, I have added these lines:
if isinstance(before, Node):
before = before.id
To Workflow.insert_node()
in this line:
https://github.com/johntruckenbrodt/pyroSAR/blob/0ea043ed55157fe81c833ca02a1fcda04e58c94d/pyroSAR/snap/auxil.py#L913
And it works. This fix would still allow existing users to still use the Node.id
property and not break existing their workflows. I can do a PR if you are okay with this suggestion.
@pbrotoisworo thanks a lot for looking into this too! Yes, your suggestion works like a charm, a PR would be most welcome. Could you repeat the same two lines for the argument after
as well?
Hello,
I tried a lot up to now, but I do not find my mistake. Could anyone help me? Unfortunately the error message doesn't help me...
It works when I comment Terrain-Correction and LinearToFromdB...
The error message I get is: