I think [here](https://github.com/brianreicher/rusty_mws/blob/d8939cdd4b53d4adde1d35fe804a77dcec5b4783/src/rusty_mws/algo/extract_seg_from_luts.py#L124) you want a copy of fragments rather than a zeros_like array, otherwise I believe all ids that are not updated are set to 0.