Skip to content

v.1.0.3#1

Open
galzand wants to merge 6 commits intomasterfrom
make-read-chunk-to-return-on-error
Open

v.1.0.3#1
galzand wants to merge 6 commits intomasterfrom
make-read-chunk-to-return-on-error

Conversation

@galzand
Copy link
Collaborator

@galzand galzand commented May 29, 2024

No description provided.

@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch 2 times, most recently from 5186c83 to db19920 Compare May 30, 2024 08:41
L = self.nchannels*chunksize*self.nbytes
s = self.proc.stdout.read(L)
out, err = self.proc.communicate(timeout=15)
if err == b'':

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about py2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

py2 works for that problematic creative url so didn't know if we should change anything there...

s = out
else:
raise ValueError("Error occurred: {}".format(err[:200]))
# s = self.proc.stdout.read(L)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment

for std in [ self.proc.stdout,
self.proc.stderr]:
std.close()
self.proc.wait()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can exaplin why the wait here?


# Make a reader
pix_fmt = "rgba" if has_mask else "rgb24"
self.filename = None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for the close() function is finds the reader even if we fail during its code...



def test_shallow_copy():
"""Call a function which uses @outplace

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What?

"imageio_ffmpeg>=0.2.0; python_version>='3.4'",
'tqdm>=4.11.2,<5.0',
"numpy>=1.17.3; python_version!='2.7'",
"numpy>=1.16.6; python_version!='2.7'",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this? how does it works before the changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the version of numpy we use in py3 in singular is 1.16.6
so I didn't want that by installing it, it would install a newer numpy version...

@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch from 65dd62c to 03f758a Compare June 4, 2024 11:04
@galzand galzand changed the title make read_chunk return on error v.1.0.3 Jun 4, 2024
@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch from a02556c to 2b33890 Compare June 4, 2024 13:18
@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch 2 times, most recently from b6923a8 to d04edbe Compare June 13, 2024 08:29
@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch from e95b2e7 to 8e03d3f Compare June 16, 2024 10:02
@galzand galzand force-pushed the make-read-chunk-to-return-on-error branch from 8e03d3f to 202b2d5 Compare June 16, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants