cokelaer / bioservices

Access to Biological Web Services from Python.
http://bioservices.readthedocs.io
Other
278 stars 60 forks source link

error in PDBe module or just in the example? #247

Closed hrp1000 closed 1 year ago

hrp1000 commented 1 year ago

Using the example on the bioservices web-page -

from bioservices import PDBe s = PDBe() WARNING [bioservices.PDBe:130]: The URL (https://www.ebi.ac.uk/pdbe/api/pdb/entry/) provided cannot be reached. res = s.get_file("1FBV", "pdb") _Traceback (most recent call last): File "", line 1, in AttributeError: 'PDBe' object has no attribute 'getfile'

("get_files" exists but is not called in the same way...)

s = PDBe(verbose=True) WARNING [bioservices.PDBe:130]: The URL (https://www.ebi.ac.uk/pdbe/api/pdb/entry/) provided cannot be reached. INFO [bioservices.PDBe:363]: Initialising PDBe service (REST)

cokelaer commented 1 year ago

@hrp1000 indeed this is a typo in the doc. should have been

s.get_files('1FBV')

will be fix in the coming release. thanks for reporting this typo.