IMP.atom.read_pdb confusing error message when not finding file
When trying to read a pdb file that does not exist on my disk I get a puzzling message :
mh = IMP.atom.read_pdb(pdbFilePath,m,sel) NotImplementedError: Wrong number of arguments for overloaded function 'read_pdb'. Possible C/C++ prototypes are: IMP::atom::read_pdb(IMP::TextInput,IMP::Model *) IMP::atom::read_pdb(IMP::TextInput,IMP::Model *,IMP::atom::PDBSelector const &,bool) IMP::atom::read_pdb(IMP::TextInput,IMP::Model *,IMP::atom::PDBSelector const &)
It is due to how the python wrappers are generated and I haven't figured out a way to report a better error message. I'll take another look as it is rather misleading :-)
On Jul 20, 2010, at 6:34 AM, Benjamin SCHWARZ wrote:
> When trying to read a pdb file that does not exist on my disk I get a puzzling message : > > mh = IMP.atom.read_pdb(pdbFilePath,m,sel) > NotImplementedError: Wrong number of arguments for overloaded function 'read_pdb'. > Possible C/C++ prototypes are: > IMP::atom::read_pdb(IMP::TextInput,IMP::Model *) > IMP::atom::read_pdb(IMP::TextInput,IMP::Model *,IMP::atom::PDBSelector const &,bool) > IMP::atom::read_pdb(IMP::TextInput,IMP::Model *,IMP::atom::PDBSelector const &) > > _______________________________________________ > IMP-users mailing list > IMP-users@salilab.org > https://salilab.org/mailman/listinfo/imp-users
participants (2)
-
Benjamin SCHWARZ
-
Daniel Russel