-
Notifications
You must be signed in to change notification settings - Fork 1
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
simple code suggestions to improve #50
Comments
tissue_labeling/scripts/mit_kwyk_data.py Line 229 in 8611ada
edit: please see the table at the bottom of this page |
tissue_labeling/scripts/mit_kwyk_data.py Line 183 in 8611ada
couldn't this be written as update: iterable unpacking cannot be used in comprehension |
tissue_labeling/scripts/mit_kwyk_data.py Lines 392 to 393 in 8611ada
Not sure if I agree with this. What if the middle value is the largest? You will end up with a square and that's unnecessary. Am I missing something? |
tissue_labeling/scripts/mit_kwyk_data.py Lines 379 to 381 in 8611ada
does this have to be done within the context manager? |
Also, |
tissue_labeling/scripts/mit_kwyk_data.py Line 411 in 8f9b205
Using |
slice[i,:,:] → shape is dim[1] x dim[2] |
cool..please create a separate function with this docstring so people like me will know why 😄 |
Convert label vol and slices to int16 Add helper functions and docstrings Remove unnecessary comments
tissue_labeling/scripts/mit_kwyk_data.py
Line 150 in 8611ada
dict(zip(unique,count))
https://github.com/sabeenlohawala/tissue_labeling/blob/8611ada4596771e1ab25cb02faf7be557509593b/scripts/mit_kwyk_data.py#L180C1-L181C85
shapes, pixel_counts = zip(*shapes_and_pixel_counts)
tissue_labeling/scripts/mit_kwyk_data.py
Lines 249 to 292 in 8611ada
Run this example and tell me if the above cannot be improved in the same way
The text was updated successfully, but these errors were encountered: