Skip to content

add_unitcell() does not let unit cell update in trajectories #1173

@fxcoudert

Description

@fxcoudert

Load a MD trajectory with time-dependent box size, use nglview.show_mdanalysis. The unit cell draw is that of the first frame, and never updates:

import MDAnalysis as mda
import nglview

u = mda.Universe('NaCl_4x4x4.pdb', 'md_trajectory.dcd')
view = nglview.show_mdanalysis(u)
view.camera = 'orthographic'
view.add_unitcell()
view
Image

Structure files are here: md.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions