Skip to content

number of frames is 0 #43

Open
Open
@sjzhao

Description

@sjzhao

Hi Robin,

I start Vmd and type gopython and then load a file by:
molid = molecule.load('parm7', '1BIQ_solvate.top', 'crdbox', 'prod_imaged.mdcrd')
tf = molecule.numframes(molid)
print(tf)
This will give the number of total frames of 300, it works.

However, when I put the same code in a python file like:
from vmd import *
mid = molecule.load('parm7', '1BIQ_solvate.top', 'crdbox', 'prod_imaged.mdcrd')
tf = molecule.numframes(mid)
print('Loaded mid is: ', mid)
print('Total number frames is', tf)

The total number of frames is 0.

Do you have any idea of what is wrong here?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions