Skip to content
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

Add LabelVariable #832

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Add LabelVariable #832

wants to merge 12 commits into from

Conversation

guyer
Copy link
Member

@guyer guyer commented Nov 23, 2021

@wd15
Copy link
Contributor

wd15 commented Nov 26, 2021

A few test cases? It took me a while to figure out what it was supposed to do.

It only works in 2D right? Maybe have an exception in the init with different dimension?

fipy/variables/labelVariable.py Show resolved Hide resolved
fipy/variables/labelVariable.py Outdated Show resolved Hide resolved
@guyer
Copy link
Member Author

guyer commented Dec 4, 2021

A few test cases? It took me a while to figure out what it was supposed to do.

I'm supposed to have tests just because the code I uploaded didn't work at all?

Copy link
Contributor

@tkphd tkphd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor flaw.

fipy/variables/cellVariable.py Outdated Show resolved Hide resolved
Copy link
Contributor

@tkphd tkphd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder what the limits on "distinct non-zero regions" are in scipy.ndimage.label. Assuming (without direct evidence) that the $\tanh$-like profile of an interface is not considered distinct from the bulk, how close can two bulk particles approach (with adjacent or overlapping interfaces) and remain resolvable?

[[0,1,0],
[1,1,1],
[0,1,0]]
dtype : date-type, optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"data-type"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants