cloud-volume icon indicating copy to clipboard operation
cloud-volume copied to clipboard

redesign: mesh.get(scalar) returns single mesh instead of dict

Open william-silversmith opened this issue 5 years ago • 2 comments

It's pretty annoying to write:

m = cv.mesh.get(23948324)[23948324] 

It would be more idiomatic to write:

m = cv.mesh.get(23948324)

This would break the existing interface though. Would everyone be okay with that?

william-silversmith avatar Aug 28 '20 02:08 william-silversmith

It would be nice to keep the original interface in the case of passing a list of segids with length 1. Besides that, sounds good to me

manuel-castro avatar Aug 28 '20 15:08 manuel-castro

That's the idea. I'm just worried about breaking people's scripts now that the feature has been this way so long. :-/

william-silversmith avatar Aug 28 '20 19:08 william-silversmith