Giter Club home page Giter Club logo

Comments (6)

shravaniurala avatar shravaniurala commented on June 14, 2024 1

I did that, it printed the correct path for the dataset. Along with that I deleted the previous .pylidcrc file and made a new one with the same details and that worked for me. Thanks a lot for your help !

from pylidc.

notmatthancock avatar notmatthancock commented on June 14, 2024

That's triggered when os.path.exists(...) returns False for the path in your config file. That means either:

  1. The path in your .pylidcrc file isn't being read correctly
  2. The path /Volumes/One Touch/Datasets/LIDC-IDRI/LIDC-IDRI isn't correct / doesn't exist

To debug, edit the file at ~/opt/anaconda3/lib/python3.9/site-packages/pylidc/Scan.py. Add a print statement at line 210 print(dicompath) to see what path is actually being tested to exist there.

from pylidc.

shravaniurala avatar shravaniurala commented on June 14, 2024

I added the print(dicompath) statement in ~/opt/anaconda3/lib/python3.9/site-packages/pylidc/Scan.py and ran the code again but it isn't printing any path. How should I proceed further ?

from pylidc.

notmatthancock avatar notmatthancock commented on June 14, 2024

Did you restart your ipython kernel after making the change to ensure the updated code is imported?

from pylidc.

shravaniurala avatar shravaniurala commented on June 14, 2024

Yes I did restart the kernel. Is the issue occurring because the dataset is stored in an external drive ?

from pylidc.

notmatthancock avatar notmatthancock commented on June 14, 2024

Is the issue occurring because the dataset is stored in an external drive ?

No. External drives work fine. There's one of two things going on right now:

  1. The print statement isn't executing because it's not running the updated code; or
  2. The print statement only looks like it's not doing anything because dicompath is blank or something.

Let's look into 2. Instead of print(dicompath), let's make it more obvious, by using print(f'The dicompath variable is: "{dicompath}"').

from pylidc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.