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
When running the example notebook, I came across two problems:
The following warning appears over 5000 times:
WARNING:tensorflow:You are casting an input of type complex128 to an incompatible dtype
float64. This will discard the imaginary part and may not be what you intended.
There's an error in code cell 41, although the notebook does continue to execute despite this.
Traceback
Error in callback <function _draw_all_if_interactive at 0x1450aaca0> (for post_execute), with arguments args (),kwargs {}:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/pyplot.py:197, in _draw_all_if_interactive()
195def_draw_all_if_interactive() -> None:
196if matplotlib.is_interactive():
--> 197 draw_all()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/_pylab_helpers.py:132, in Gcf.draw_all(cls, force)
130for manager incls.get_all_fig_managers():
131if force or manager.canvas.figure.stale:
--> 132 manager.canvas.draw_idle()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/backend_bases.py:1893, in FigureCanvasBase.draw_idle(self, *args, **kwargs)
1891 if not self._is_idle_drawing:
1892 with self._idle_draw_cntx():
-> 1893 self.draw(*args, **kwargs)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/backends/backend_agg.py:388, in FigureCanvasAgg.draw(self)
385# Acquire a lock on the shared font cache.386with (self.toolbar._wait_cursor_for_draw_cm() ifself.toolbar
387else nullcontext()):
--> 388 self.figure.draw(self.renderer)
389# A GUI class may be need to update a window using this draw, so390# don't forget to call the superclass.391super().draw()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:95, in _finalize_rasterization.<locals>.draw_wrapper(artist, renderer, *args, **kwargs)
93@wraps(draw)
94defdraw_wrapper(artist, renderer, *args, **kwargs):
---> 95 result = draw(artist, renderer, *args, **kwargs)
96if renderer._rasterizing:
97 renderer.stop_rasterizing()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/figure.py:3154, in Figure.draw(self, renderer)
3151 # ValueError can occur when resizing a window.
3153 self.patch.draw(renderer)
-> 3154 mimage._draw_list_compositing_images(
3155 renderer, self, artists, self.suppressComposite)
3157 for sfig in self.subfigs:
3158 sfig.draw(renderer)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/image.py:132, in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
130if not_composite ornot has_images:
131for a in artists:
--> 132 a.draw(renderer)
133else:
134# Composite any adjacent images together135 image_group = []
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/axes/_base.py:3070, in _AxesBase.draw(self, renderer)
3067 if artists_rasterized:
3068 _draw_rasterized(self.figure, artists_rasterized, renderer)
-> 3070 mimage._draw_list_compositing_images(
3071 renderer, self, artists, self.figure.suppressComposite)
3073 renderer.close_group('axes')
3074 self.stale = False
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/image.py:132, in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
130if not_composite ornot has_images:
131for a in artists:
--> 132 a.draw(renderer)
133else:
134# Composite any adjacent images together135 image_group = []
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/lines.py:800, in Line2D.draw(self, renderer)
797 lc_rgba = mcolors.to_rgba(self._color, self._alpha)
798 gc.set_foreground(lc_rgba, isRGBA=True)
--> 800 gc.set_dashes(*self._dash_pattern)
801 renderer.draw_path(gc, tpath, affine.frozen())
802 gc.restore()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/backend_bases.py:965, in GraphicsContextBase.set_dashes(self, dash_offset, dash_list)
962raiseValueError(
963"All values in the dash list must be non-negative")
964if dl.size andnot np.any(dl >0.0):
--> 965 raise ValueError(
966'At least one value in the dash list must be positive')
967self._dashes = dash_offset, dash_list
ValueError: At least one value in the dash list must be positive
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/IPython/core/formatters.py:343, in BaseFormatter.__call__(self, obj)
341pass342else:
--> 343 return printer(obj)
344# Finally look for special method names345 method = get_real_method(obj, self.print_method)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/IPython/core/pylabtools.py:152, in print_figure(fig, fmt, bbox_inches, base64, **kwargs)
149from matplotlib.backend_bases import FigureCanvasBase
150 FigureCanvasBase(fig)
--> 152 fig.canvas.print_figure(bytes_io, **kw)
153 data = bytes_io.getvalue()
154if fmt =='svg':
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/backend_bases.py:2164, in FigureCanvasBase.print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, pad_inches, bbox_extra_artists, backend, **kwargs)
2161 # we do this instead of `self.figure.draw_without_rendering`
2162 # so that we can inject the orientation
2163 with getattr(renderer, "_draw_disabled", nullcontext)():
-> 2164 self.figure.draw(renderer)
2165 if bbox_inches:
2166 if bbox_inches == "tight":
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:95, in _finalize_rasterization.<locals>.draw_wrapper(artist, renderer, *args, **kwargs)
93@wraps(draw)
94defdraw_wrapper(artist, renderer, *args, **kwargs):
---> 95 result = draw(artist, renderer, *args, **kwargs)
96if renderer._rasterizing:
97 renderer.stop_rasterizing()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/figure.py:3154, in Figure.draw(self, renderer)
3151 # ValueError can occur when resizing a window.
3153 self.patch.draw(renderer)
-> 3154 mimage._draw_list_compositing_images(
3155 renderer, self, artists, self.suppressComposite)
3157 for sfig in self.subfigs:
3158 sfig.draw(renderer)
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/image.py:132, in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
130if not_composite ornot has_images:
131for a in artists:
--> 132 a.draw(renderer)
133else:
134# Composite any adjacent images together135 image_group = []
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/axes/_base.py:3070, in _AxesBase.draw(self, renderer)
3067 if artists_rasterized:
3068 _draw_rasterized(self.figure, artists_rasterized, renderer)
-> 3070 mimage._draw_list_compositing_images(
3071 renderer, self, artists, self.figure.suppressComposite)
3073 renderer.close_group('axes')
3074 self.stale = False
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/image.py:132, in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
130if not_composite ornot has_images:
131for a in artists:
--> 132 a.draw(renderer)
133else:
134# Composite any adjacent images together135 image_group = []
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/artist.py:72, in allow_rasterization.<locals>.draw_wrapper(artist, renderer)
69if artist.get_agg_filter() isnotNone:
70 renderer.start_filter()
---> 72 return draw(artist, renderer)
73finally:
74if artist.get_agg_filter() isnotNone:
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/lines.py:800, in Line2D.draw(self, renderer)
797 lc_rgba = mcolors.to_rgba(self._color, self._alpha)
798 gc.set_foreground(lc_rgba, isRGBA=True)
--> 800 gc.set_dashes(*self._dash_pattern)
801 renderer.draw_path(gc, tpath, affine.frozen())
802 gc.restore()
File ~/Documents/testspace/.venv/lib/python3.11/site-packages/matplotlib/backend_bases.py:965, in GraphicsContextBase.set_dashes(self, dash_offset, dash_list)
962raiseValueError(
963"All values in the dash list must be non-negative")
964if dl.size andnot np.any(dl >0.0):
--> 965 raise ValueError(
966'At least one value in the dash list must be positive')
967self._dashes = dash_offset, dash_list
ValueError: At least one value in the dash list must be positive
Describe the bug
When running the example notebook, I came across two problems:
The following warning appears over 5000 times:
There's an error in code cell 41, although the notebook does continue to execute despite this.
Traceback
To Reproduce
Clone the repo, install:
pip install -e . pip install notebook
Then run the notebook on OSX.
pip freeze
outputExpected behavior
No (or very few) warnings and no errors.
Environment (please complete the following information)
c3-toolset
Version: Commit 48b7917 from dev branchThe text was updated successfully, but these errors were encountered: