Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance_key as categorical in PointsModel #160

Closed
giovp opened this issue Feb 28, 2023 · 2 comments
Closed

instance_key as categorical in PointsModel #160

giovp opened this issue Feb 28, 2023 · 2 comments

Comments

@giovp
Copy link
Member

giovp commented Feb 28, 2023

Unrelated to the above but related to instance_key. I think that the column specified by instance_key should never be categorical, so we should remove this line:

if not is_categorical_dtype(data[instance_key]):

Originally posted by @LucaMarconato in #158 (comment)

@giovp
Copy link
Member Author

giovp commented Feb 28, 2023

so in this case, instance_key refers to points, not shapes. I agree it's debatable on whether we want to have it categorical. I think it might make sense in e.g. few regions but many points. I think few can be order of thousands of regions (and millions of points). wdyt? @LucaMarconato

@LucaMarconato
Copy link
Member

Ah you are right! I had confused points and circles (have been working with napari today and they use the same name). It should be categorical I agree.

@scverse scverse locked and limited conversation to collaborators Feb 28, 2023
@giovp giovp converted this issue into discussion #161 Feb 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants