Closed gsakkis closed 3 years ago
Fixing this bug will break all my behaviour circumventions.. namely my additional paranthesises.. :(
What do you mean exactly? Will this change actually break anything, or just make your work-arounds unnecessary?
It makes my work-arounds unnecessary. It's absolutely fine to fix it.
By the way the same happens for segy.attributes(field)[i]
Fixed & released in 1.9.2
Thanks for the fix! What about these related shape inconsistencies?
.attributes(field)[i]
returns an array of size 1, just like trace
before this fix..trace[i:j, s]
for integers i,j,s
returns a generator of size 1 arrays instead of scalar values.I can open a new issue if you think these are bugs too.
Please make new issues for them for easier reference. I think the second a generator is involved, you'd have to expect arrays, but I'll give it a think.
I stumbled on a minor surprising behavior:
segy.trace[i, j])
return an array of size 1 instead of a scalar value wheni, j
are integers. Is this intended, accidental or a bug?