pims.Video (PyAVReaderTimed backend) not closed by context manager
EitanHemed opened this issue · 0 comments
EitanHemed commented
import pims
# A video file you can load with pims.Video
f = 'foo.bar'
with pims.Video(f) as vid:
frame = vid[0]
# Expected to raise ValueError
print(vid[1].shape)
vid.close()
# Expected to raise ValueError
print(vid[2].shape)
Using the context manager it is expected that vid
will be closed and subsequent frames will not be available for access.
However, it seems that the close
method remains unimplemented (see 1, 2).