I am still having some trouble. Here is my code:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
Input In [11], in <cell line: 11>()
9 hbonds.hydrogens_sel = hbonds.guess_hydrogens("protein")
10 hbonds.acceptors_sel = hbonds.guess_acceptors("protein")
---> 11 hbonds.run(0,-1,10)
13 print(hbonds.results.hbonds)
14 np.savetxt('hbonds_protein.dat', hbonds.results.hbonds)
File ~\anaconda3\lib\site-packages\MDAnalysis\analysis\base.py:295, in AnalysisBase.run(self, start, stop, step, verbose)
293
logger.info("Starting preparation")
294 self._prepare()
--> 295 for i, ts in enumerate(ProgressBar(
296 self._trajectory[self.start:self.stop:self.step],
297 verbose=verbose)):
298 self._frame_index = i
299 self._ts = ts
File ~\anaconda3\lib\site-packages\tqdm\notebook.py:258, in tqdm_notebook.__iter__(self)
256 try:
257 it = super(tqdm_notebook, self).__iter__()
--> 258 for obj in it:
259 # return super(tqdm...) will not catch exception
260 yield obj
261 # NB: except ... [ as ...] breaks IPython async KeyboardInterrupt
File ~\anaconda3\lib\site-packages\tqdm\std.py:1183, in tqdm.__iter__(self)
1180 # If the bar is disabled, then just walk the iterable
1181 # (note: keep this check outside the loop for performance)
1182 if self.disable:
-> 1183 for obj in iterable:
1184 yield obj
1185 return
File ~\anaconda3\lib\site-packages\MDAnalysis\coordinates\base.py:994, in FrameIteratorSliced.__iter__(self)
992 def __iter__(self):
993 for i in range(self.start, self.stop, self.step):
--> 994 yield self.trajectory[i]
995 self.trajectory.rewind()
File ~\anaconda3\lib\site-packages\MDAnalysis\coordinates\base.py:1610, in ProtoReader.__getitem__(self, frame)
1608 if isinstance(frame, numbers.Integral):
1609 frame = self._apply_limits(frame)
-> 1610 return self._read_frame_with_aux(frame)
1611 elif isinstance(frame, (list, np.ndarray)):
1612 if len(frame) != 0 and isinstance(frame[0], (bool, np.bool_)):
1613 # Avoid having list of bools
File ~\anaconda3\lib\site-packages\MDAnalysis\coordinates\base.py:1642, in ProtoReader._read_frame_with_aux(self, frame)
1640 def _read_frame_with_aux(self, frame):
1641 """Move to *frame*, updating ts with trajectory, transformations and auxiliary data."""
-> 1642 ts = self._read_frame(frame) # pylint: disable=assignment-from-no-return
1643 for aux in self.aux_list:
1644 ts = self._auxs[aux].update_ts(ts)
File ~\anaconda3\lib\site-packages\MDAnalysis\coordinates\DCD.py:182, in DCDReader._read_frame(self, i)
180 """read frame i"""
181 self._frame = i - 1
--> 182 self._file.seek(i)
183 return self._read_next_timestep()
File MDAnalysis\lib\formats\libdcd.pyx:427, in MDAnalysis.lib.formats.libdcd.DCDFile.seek()
OverflowError: Python int too large to convert to C long
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------