Open paul-sud opened 3 years ago
Hi Paul,
Thanks for the report. From the surface, it does look like it might be a NumPy version and by proxy a python version issue we probably need to tackle in the near future. You could maybe try putting the strand field manually in your segmentations to avoid the exception altogether though I'm not sure if this would suffice.
Thanks for the response. Fortunately for my use case it was fairly simple to write our own relabeling since adjacent segments don't share labels, no need to merge.
When running
segtools-relabel
I am seeing the following error:Indexing into the NumPy array with an incorrect name, in this case
strand
, raises a ValueError for me in NumPy1.16.5
. I think the relabeling expects anIndexError
in a couple places, see the following: https://github.com/hoffmangroup/segtools/blob/2879994035712c4f34348dc145f99accccacfa01/segtools/relabel.py#L35 https://github.com/hoffmangroup/segtools/blob/2879994035712c4f34348dc145f99accccacfa01/segtools/relabel.py#L88This NumPy issue looks relevant too: https://github.com/numpy/numpy/issues/8519