Skip to content

mb.Compound.save() feature returns a PDB file without bonds #1190

Description

@Pablo-Pomares

Bug summary

When trying to save to a PDB file, it returns a file without bonds.

Code to reproduce the behavior

Please include a code snippet that can be used to reproduce this bug.

import mbuild as mb
from mbuild.lib.recipes import Alkane
hex = Alkane(6)

hex.save("hexane.pdb", overwrite=True)

The previous command yields (converted to txt for attachment):

hexane.txt

But the following is expected (converted to txt for attachment):

hexane1.txt

Software versions

  • Which version of mBuild are you using? 0.17.0
  • Which version of Python (python --version)? 3.11.0
  • Which operating system? Pop!_OS 22.04 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions