How does trim_nonpercolating_paths work? #352
Answered
by
jgostick
ma-sadeghi
asked this question in
Q&A
-
Here's a snippet, creating blobs in 2D, and then trimming non-percolating paths along the y-axis. I don't quite get why we still see some floating regions. import porespy as ps
im = ps.generators.blobs(shape=[50, 50], porosity=0.4)
im = ps.filters.trim_nonpercolating_paths(im, inlet_axis=1, outlet_axis=1) |
Beta Was this translation helpful? Give feedback.
Answered by
jgostick
Jan 28, 2021
Replies: 1 comment 1 reply
-
that looks like a bug to me. I've actually never like this axis business....I prefer passing in boolean masks of inlets and outlets. I updated this function to also accepts those, but I have just confirmed that it is also broken. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ma-sadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that looks like a bug to me. I've actually never like this axis business....I prefer passing in boolean masks of inlets and outlets. I updated this function to also accepts those, but I have just confirmed that it is also broken.