From 5dd8eb31d50a69ada8fc1e0725eb838275f18c50 Mon Sep 17 00:00:00 2001 From: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com> Date: Thu, 23 May 2019 15:36:33 +1000 Subject: [PATCH] Update pythreejs.py to silence traitlets warning Traitlets warning encountered: ...\site-packages\pythreejs\pythreejs.py:56 C:\Users\genevieb\AppData\Local\conda\conda\envs\ipyvolume-dev\lib\site-packages\pythreejs\pythreejs.py:56: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1. z = List(CFloat, [0] * 100) -- Docs: https://docs.pytest.org/en/latest/warnings.html --- pythreejs/pythreejs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythreejs/pythreejs.py b/pythreejs/pythreejs.py index 48200ed5..456916fe 100644 --- a/pythreejs/pythreejs.py +++ b/pythreejs/pythreejs.py @@ -53,7 +53,7 @@ class SurfaceGeometry(BufferGeometry): """ A regular grid with heights """ - z = List(CFloat, [0] * 100) + z = List(CFloat(), [0] * 100) width = CInt(10) height = CInt(10) width_segments = CInt(10, read_only=True)