Closed milotoor closed 1 year ago
A pull request for this would be great if you want to do that!
We haven't used the code in label_cell2
for a while. I don't remember the exact reasoning why this is, but I'd recommend proceeding with some care and double check that the code does what you expect it to.
Hi there! I recently noticed that the
label_cell2
function throws aNameError
with any input. While working on the current Kaggle competition, I was interested in speeding up my code by only working with cell masks (and omitting the nuclei masks). This seemed like the proper function to use for that, but unfortunately it raises:Looking at the relevant lines of code, it becomes clear that the problem is simply that the
morphology
module simply isn't imported! Or... at least it isn't imported in the manner the code expects. I suspect that extending the current import would suffice:Of course the calling code would need to be updated as well to reference these imported functions directly:
I'm happy to put together a pull request for this, just let me know if you'd like that.