CodePudding user response:
Reading wrong masks is one-dimensional, you seem to use the 2 d index,Try masks [: lengthsmax]
CodePudding user response:
Not ah, I run or an error, please have a look at, thank youCodePudding user response:
[: masks, lengthsmax]Try this