Code Monkey home page Code Monkey logo

Comments (5)

jvsguerra avatar jvsguerra commented on June 19, 2024

Hi @pippo1990,

It seems like you're encountering an ImportError because you're trying to import the pyKVFinder module incorrectly. To run the cavity detection workflow, you should import it as follows:

from pyKVFinder import run_workflow

The pyKVFinder module itself doesn't exist, which is why you're getting the ImportError.

Once you've imported run_workflow correctly, you can use it in your code as shown below:

import os
import pyKVFinder
from pyKVFinder import run_workflow

pdb = os.path.join(os.path.dirname(pyKVFinder.__file__), 'data', 'tests', '1FMO.pdb')
results = run_workflow(pdb)
results.export()

This should allow you to run the cavity detection workflow without any issues.

For more detailed information on how to use pyKVFinder and its features, please refer to the official tutorial: pyKVFinder Tutorial.

If you encounter any further issues or have additional questions, please feel free to ask for assistance.

from pykvfinder.

pippo1990 avatar pippo1990 commented on June 19, 2024

Hi @jvsguerra , this is what I expected, the :

>>> from pyKVFinder import pyKVFinder
>>> import os
>>> pdb = os.path.join(os.path.dirname(pyKVFinder.__file__), 'data', 'tests', '1FMO.pdb')
>>> results = pyKVFinder(pdb)
>>> results.export()

is in your main.py code :

>>> from pyKVFinder import pyKVFinder

>>> from pyKVFinder import pyKVFinder

>>> from pyKVFinder import pyKVFinder

>>> from pyKVFinder import pyKVFinder

I dont know how to issue a pull request though, just to let you Know that your documentation contain bugs

Cheers P.

from pykvfinder.

jvsguerra avatar jvsguerra commented on June 19, 2024

Thank you, @pippo1990, for bringing this to my attention.

I appreciate your willingness to contribute to improving the documentation. These outdated code snippets can indeed be confusing for users, so it's crucial to keep our documentation accurate and up to date.

No worries. I've opened and merged PR #62 to address these inconsistencies.

If you encounter any further issues or have additional questions, please feel free to ask for assistance.

from pykvfinder.

pippo1990 avatar pippo1990 commented on June 19, 2024

👍

from pykvfinder.

jvsguerra avatar jvsguerra commented on June 19, 2024

@pippo1990, I am closing this issue for now.
If you feel that the issue is still relevant or have any further questions, please feel free to re-open it and provide any additional information that may be helpful in resolving the issue.

from pykvfinder.

Related Issues (10)

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.