Comments (5)
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.
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 :
Line 472 in e1a7902
Line 516 in e1a7902
Line 571 in e1a7902
Line 634 in e1a7902
I dont know how to issue a pull request though, just to let you Know that your documentation contain bugs
Cheers P.
from pykvfinder.
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.
👍
from pykvfinder.
@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)
- Segmentation error when running the workflow HOT 1
- Volume vs. Time plot for a particular pocket HOT 4
- Cannot install pyKVFinder from PyPi... HOT 7
- Integrate depth and hydropathy into one file for pyKVFinder
- Supramolecular cage analysis notebook
- box.toml file generation HOT 5
- Question: Performing a Localized Search HOT 2
- [MNT] Add Windows build support
- [MNT] Expand compatibility to Python 3.12 and 3.13 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pykvfinder.