Skip to content

'string.split()' causes issue in 'Pymol-script-repo/modules/ADT/MolKit /pdbParser.py' #149

Open
@WeibinRen

Description

@WeibinRen

See line 1392 as example,
atom._coords = [ [ float(rec[5]), float(rec[6]), float(rec[7]) ] ]
the rec here comes from line 1308:
rec = split(rec)
Sometimes protein PDB file content looks like(protein 2p7a from PDBBind database):
ATOM 406 O ASP A 259 66.586 -29.223-100.911 1.00 14.83 O
If directly use string.split() here, the number -29.223-100.911 will not be split correctly.
It will raise error like:
ValueError: could not convert string to float: '-29.223-100.911'

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