You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At one point, widgets were broken in jupytherhub, but now we are conda env associated with 2018-3. This function looks to be very broken at this point.
ValueError: Invalid file object: <_io.BufferedReader name=65> is the Exception, but I tried with just 10 images that were just a portion of the FastCCD image, so the problem is not with the input array.
Also not there are some requested enhancements for usability: #57
image_stack_to_movie(sub_images[0:10], vmin=np.percentile(sub_images[1],30), vmax=np.percentile(sub_images[1],90))
---------------------------------------------------------------------------ValueErrorTraceback (mostrecentcalllast)
<ipython-input-193-d87213fc5ab6>in<module>()
1#THIS IS CURRENTLY BROKEN2#---->3image_stack_to_movie(sub_images[0:10], vmin=np.percentile(sub_images[1],30), vmax=np.percentile(sub_images[1],90))
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/csxtools/ipynb/animation.pyinimage_stack_to_movie(images, frames, vmin, vmax, figsize, cmap, fps)
102plt.close(anim._fig)
103# return anim.to_html5_video()-->104returnHTML(_anim_to_html(anim, fps))
105106/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/csxtools/ipynb/animation.pyin_anim_to_html(anim, fps)
115anim.save(f.name, fps=fps,
116extra_args=['-vcodec', 'libx264',
-->117'-pix_fmt', 'yuv420p'])
118video=open(f.name, "rb").read()
119anim._encoded_video=base64.b64encode(video)
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/matplotlib/animation.pyinsave(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
1198# TODO: See if turning off blit is really necessary1199anim._draw_next_frame(d, blit=False)
->1200writer.grab_frame(**savefig_kwargs)
12011202# Reconnect signal for first draw if necessary/opt/conda_envs/analysis-2018-2.1/lib/python3.6/contextlib.pyin__exit__(self, type, value, traceback)
97value=type()
98try:
--->99self.gen.throw(type, value, traceback)
100exceptStopIterationasexc:
101# Suppress StopIteration *unless* it's the same exception that/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/matplotlib/animation.pyinsaving(self, fig, outfile, dpi, *args, **kwargs)
239yieldself240finally:
-->241self.finish()
242243/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/matplotlib/animation.pyinfinish(self)
365deffinish(self):
366'''Finish any processing for writing the movie.'''-->367self.cleanup()
368369defgrab_frame(self, **savefig_kwargs):
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/site-packages/matplotlib/animation.pyincleanup(self)
403defcleanup(self):
404'''Clean-up and collect the process used to write the movie file.'''-->405out, err=self._proc.communicate()
406self._frame_sink().close()
407_log.debug('MovieWriter -- Command stdout:\n%s', out)
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/subprocess.pyincommunicate(self, input, timeout)
841842try:
-->843stdout, stderr=self._communicate(input, endtime, timeout)
844finally:
845self._communication_started=True/opt/conda_envs/analysis-2018-2.1/lib/python3.6/subprocess.pyin_communicate(self, input, endtime, orig_timeout)
1503selector.register(self.stdin, selectors.EVENT_WRITE)
1504ifself.stdout:
->1505selector.register(self.stdout, selectors.EVENT_READ)
1506ifself.stderr:
1507selector.register(self.stderr, selectors.EVENT_READ)
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/selectors.pyinregister(self, fileobj, events, data)
349350defregister(self, fileobj, events, data=None):
-->351key=super().register(fileobj, events, data)
352poll_events=0353ifevents&EVENT_READ:
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/selectors.pyinregister(self, fileobj, events, data)
235raiseValueError("Invalid events: {!r}".format(events))
236-->237key=SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data)
238239ifkey.fdinself._fd_to_key:
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/selectors.pyin_fileobj_lookup(self, fileobj)
222 """
223 try:
--> 224 return _fileobj_to_fd(fileobj)
225 except ValueError:
226 # Do an exhaustive search.
/opt/conda_envs/analysis-2018-2.1/lib/python3.6/selectors.py in _fileobj_to_fd(fileobj)
37 except (AttributeError, TypeError, ValueError):
38 raise ValueError("Invalid file object: "
---> 39 "{!r}".format(fileobj)) from None
40 if fd < 0:
41 raise ValueError("Invalid file descriptor: {}".format(fd))
ValueError: Invalidfileobject: <_io.BufferedReadername=65>
The text was updated successfully, but these errors were encountered:
At one point, widgets were broken in jupytherhub, but now we are conda env associated with 2018-3. This function looks to be very broken at this point.
ValueError: Invalid file object: <_io.BufferedReader name=65>
is the Exception, but I tried with just 10 images that were just a portion of the FastCCD image, so the problem is not with the input array.Also not there are some requested enhancements for usability: #57
The text was updated successfully, but these errors were encountered: