From de641e3568d92fbd940fbe91dbc6c3453520fc1d Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Fri, 19 Jul 2024 06:23:32 -0700 Subject: [PATCH] Remove cmap kwarg since it doesn't do anything --- cortex/webgl/view.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cortex/webgl/view.py b/cortex/webgl/view.py index 106db114..b0abd868 100644 --- a/cortex/webgl/view.py +++ b/cortex/webgl/view.py @@ -50,7 +50,6 @@ def make_static( overlays_visible=("rois", "sulci"), labels_visible=("rois",), types=("inflated",), - cmap="RdBu_r", html_embed=True, copy_ctmfiles=True, title="Brain", @@ -101,9 +100,6 @@ def make_static( types : tuple, optional Types of surfaces to include in addition to the original (fiducial, pial, and white matter) and flat surfaces. Default ('inflated', ) - cmap : string, optional - Name of default colormap. Default 'RdBu_r' - TODO: DOES THIS DO ANYTHING ANYMORE? html_embed : bool, optional Whether to embed the webgl resources in the html output. Default 'True'. If 'False', the webgl resources must be served by your web server. @@ -268,7 +264,7 @@ def make_static( html = tpl.generate( data=json.dumps(metadata), colormaps=colormaps, - default_cmap=cmap, + default_cmap="RdBu_r", python_interface=False, leapmotion=True, layout=layout, @@ -297,7 +293,6 @@ def show( overlays_visible=("rois", "sulci"), labels_visible=("rois",), types=("inflated",), - cmap="RdBu_r", overlay_file=None, curvature_brightness=None, curvature_contrast=None, @@ -354,9 +349,6 @@ def show( types : tuple, optional Types of surfaces to include in addition to the original (fiducial, pial, and white matter) and flat surfaces. Default ('inflated', ) - cmap : string, optional - Name of default colormap. Default 'RdBu_r' - TODO: DOES THIS DO ANYTHING ANYMORE? overlay_file : str or None, optional Custom overlays.svg file to use instead of the default one for this subject (if not None). Default None. @@ -526,7 +518,7 @@ def get(self): self.set_header("Content-Type", "text/html") generated = html.generate(data=metadata, colormaps=colormaps, - default_cmap=cmap, + default_cmap="RdBu_r", python_interface=True, leapmotion=True, layout=layout,