b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6,mmcv/video/io.py,VideoReader,get_frame,#VideoReader#Any#,158
Before Change
ndarray or None: Return the frame if successful, otherwise None.
if frame_id < 0 or frame_id >= self._frame_cnt:
raise IndexError(
""frame_id" must be between 0 and {}".format(self._frame_cnt -
1))
if frame_id == self._position:
return self.read()
if self._cache:
img = self._cache.get(frame_id)
After Change
ndarray or None: Return the frame if successful, otherwise None.
if frame_id < 0 or frame_id >= self._frame_cnt:
raise IndexError(
f""frame_id" must be between 0 and {self._frame_cnt - 1}")
if frame_id == self._position:
return self.read()
if self._cache:
img = self._cache.get(frame_id)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/video/io.py
Class Name: VideoReader
Method Name: get_frame
Project Name: brian-team/brian2
Commit Name: 086196a1b4d03de5ed21312d0792419c312d7a36
Time: 2013-07-26
Author: marcel.stimberg@ens.fr
File Name: brian2/core/specifiers.py
Class Name: VariableView
Method Name: __getitem__
Project Name: brian-team/brian2
Commit Name: 086196a1b4d03de5ed21312d0792419c312d7a36
Time: 2013-07-26
Author: marcel.stimberg@ens.fr
File Name: brian2/core/specifiers.py
Class Name: VariableView
Method Name: __setitem__