Comments (3)
Pretty sure this is working as designed. If you source a .tcl script that loads a trajectory, it'll do exactly what the tcl script would do, and leave the trajectory loaded. Exit will get you out of the tcl interpreter, but since python is controlling VMD, there is still a molecule there for you to interact with. If you wanted to delete the molecule, you can just do that through the usual delete commands in Python or tcl.
from vmd-python.
@jvermaas is right, this is intended behavior. By having the TCL and Python interpreters operate in the same process, you can manipulate the same molecule with both languages in the same session using its molid.
To fix your memory leak you can delete the molecules you create when you're finished using them. You could also do this from the Python interface by deleting all loaded molecules in between calls to your TCL script:
from vmd import molecule
for molid in molecule.listall():
molecule.delete(molid)
from vmd-python.
Thanks for the information. Have a good day
from vmd-python.
Related Issues (20)
- Integration with VMD HOT 9
- Documentation updates? HOT 1
- Blank lines when writing a PDB HOT 5
- index / serial HOT 1
- render produce wrong output file when running through script HOT 2
- add label and specific color for some resid HOT 1
- DCD files HOT 1
- some problems in python HOT 3
- Cannot install vmd-python
- Does this package can invoke a VMD GUI or just uses the python-api of VMD HOT 1
- Use PSFgen version 2.0 HOT 2
- __init__.py not found HOT 2
- Installation error in vmd-python HOT 2
- number of frames is 0 HOT 3
- Build issues HOT 3
- Can't use topotools::mergetools when evaluating a tcl script. HOT 3
- Support for Python 3.10+ HOT 2
- Building with EGL support
- Building a water box fails randomly.
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 vmd-python.