Baker-Hubbard Hydrogen Bond Identification

An error occurred while executing the following cell: ------------------ t = md.load_pdb('http://www.rcsb.org/pdb/files/2EQQ.pdb') print(t) ------------------  gaierrorTraceback (most recent call last) /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in do_open(self, http_class, req, **http_conn_args)  1353 try: -> 1354 h.request(req.get_method(), req.selector, req.data, headers,  1355 encode_chunked=req.has_header('Transfer-encoding')) /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in request(self, method, url, body, headers, encode_chunked)  1255 """Send a complete request to the server.""" -> 1256 self._send_request(method, url, body, headers, encode_chunked)  1257  /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)  1301 body = _encode(body, 'body') -> 1302 self.endheaders(body, encode_chunked=encode_chunked)  1303  /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in endheaders(self, message_body, encode_chunked)  1250 raise CannotSendHeader() -> 1251 self._send_output(message_body, encode_chunked=encode_chunked)  1252  /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in _send_output(self, message_body, encode_chunked)  1010 del self._buffer[:] -> 1011 self.send(msg)  1012  /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in send(self, data)  950 if self.auto_open: --> 951 self.connect()  952 else: /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/http/client.py in connect(self)  921 """Connect to the host and port specified in __init__.""" --> 922 self.sock = self._create_connection(  923 (self.host,self.port), self.timeout, self.source_address) /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/socket.py in create_connection(address, timeout, source_address)  786 err = None --> 787 for res in getaddrinfo(host, port, 0, SOCK_STREAM):  788 af, socktype, proto, canonname, sa = res /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/socket.py in getaddrinfo(host, port, family, type, proto, flags)  917 addrlist = [] --> 918 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):  919 af, socktype, proto, canonname, sa = res gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: URLErrorTraceback (most recent call last)  in  ----> 1 t = md.load_pdb('http://www.rcsb.org/pdb/files/2EQQ.pdb')  2 print(t) /nix/store/rg3m2aq0i0897r4cmx3a3cy1gjx0ragp-python3.8-mdtraj-0.0/lib/python3.8/site-packages/mdtraj/formats/pdb/pdbfile.py in load_pdb(filename, stride, atom_indices, frame, no_boxchk, standard_names)  151   152 filename = str(filename) --> 153 with PDBTrajectoryFile(filename, standard_names=standard_names) as f:  154 atom_slice = slice(None) if atom_indices is None else atom_indices  155 if frame is not None: /nix/store/rg3m2aq0i0897r4cmx3a3cy1gjx0ragp-python3.8-mdtraj-0.0/lib/python3.8/site-packages/mdtraj/formats/pdb/pdbfile.py in __init__(self, filename, mode, force_overwrite, standard_names)  255   256 if _is_url(filename): --> 257 self._file = urlopen(filename)  258 if filename.lower().endswith('.gz'):  259 if six.PY3: /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)  220 else:  221 opener = _opener --> 222 return opener.open(url, data, timeout)  223   224 def install_opener(opener): /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in open(self, fullurl, data, timeout)  523   524 sys.audit('urllib.Request', req.full_url, req.data, req.headers, req.get_method()) --> 525 response = self._open(req, data)  526   527 # post-process response /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in _open(self, req, data)  540   541 protocol = req.type --> 542 result = self._call_chain(self.handle_open, protocol, protocol +  543 '_open', req)  544 if result: /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)  500 for handler in handlers:  501 func = getattr(handler, meth_name) --> 502 result = func(*args)  503 if result is not None:  504 return result /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in http_open(self, req)  1381   1382 def http_open(self, req): -> 1383 return self.do_open(http.client.HTTPConnection, req)  1384   1385 http_request = AbstractHTTPHandler.do_request_ /nix/store/5f36vg11fdfl6x6sva70cb0jqf722qqn-python3-3.8.11/lib/python3.8/urllib/request.py in do_open(self, http_class, req, **http_conn_args)  1355 encode_chunked=req.has_header('Transfer-encoding'))  1356 except OSError as err: # timeout error -> 1357 raise URLError(err)  1358 r = h.getresponse()  1359 except: URLError: URLError:

(hbonds.ipynb; hbonds_eval.ipynb; hbonds.py)