Skip to content

pims.Video (PyAVReaderTimed backend) not closed by context manager #446

Open
@EitanHemed

Description

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions