You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it is solved by running this, which the positiveSample_list has length of zero. No element in the list:
from p2ch10.dsets import getCandidateInfoList, getCt, LunaDataset
candidateInfo_list = getCandidateInfoList(requireOnDisk_bool=False)
positiveInfo_list = [x for x in candidateInfo_list if x[0]]
diameter_list = [x[1] for x in positiveInfo_list]
This error is caused by myself, which is not about the code at all. That is because I forgot to run the import codes as those in above after changing the disk.py with the change of what this pull request is all about.
Note:
For the Colab notebook above in my repo, I changed it a little bit in the ch10 notebook, which is not in this pull request, so you do not need to upload the dataset. But it downloads the dataset from the dataset website and does everything. So, everyone will have 20 MB/sec to download the dataset and run it. However, I am not sure Google will like this kind of doing if a lot of people doing it in this way. Thus, I am not sure it is good in case if you use my Colab notebook in my repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#27

after using the new import, it works.