From 899822ced3f369f9a52c4ce385db1231c12335a1 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Fri, 6 Oct 2023 11:17:45 -0400 Subject: [PATCH] Mad scale (#347) * Add mad_scale=5.0 to IF min/max parameters --- em_workflows/brt/flow.py | 2 +- em_workflows/czi/flow.py | 2 +- em_workflows/sem_tomo/flow.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/em_workflows/brt/flow.py b/em_workflows/brt/flow.py index 5c1b36d8..328903aa 100644 --- a/em_workflows/brt/flow.py +++ b/em_workflows/brt/flow.py @@ -521,7 +521,7 @@ def gen_ng_metadata(fp_in: FilePath) -> Dict: ng_asset["metadata"] = { "shader": hw_image.shader_type, "dimensions": hw_image.dims, - "shaderParameters": hw_image.neuroglancer_shader_parameters(), + "shaderParameters": hw_image.neuroglancer_shader_parameters(mad_scale=5.0), } return ng_asset diff --git a/em_workflows/czi/flow.py b/em_workflows/czi/flow.py index 2b262dd3..a22a3b0d 100644 --- a/em_workflows/czi/flow.py +++ b/em_workflows/czi/flow.py @@ -71,7 +71,7 @@ def gen_imageSet(file_path: FilePath) -> List: ng_asset["metadata"] = dict( shader=image.shader_type, dimensions="XY", - shaderParameters=image.neuroglancer_shader_parameters(), + shaderParameters=image.neuroglancer_shader_parameters(mad_scale=5.0), ) assets.append(ng_asset) image_elt["assets"] = assets diff --git a/em_workflows/sem_tomo/flow.py b/em_workflows/sem_tomo/flow.py index e8625e8c..786e7cb5 100644 --- a/em_workflows/sem_tomo/flow.py +++ b/em_workflows/sem_tomo/flow.py @@ -252,7 +252,7 @@ def gen_ng_metadata(fp_in: FilePath) -> Dict: ng_asset["metadata"] = dict( shader=hw_image.shader_type, dimensions=hw_image.dims, - shaderParameters=hw_image.neuroglancer_shader_parameters(), + shaderParameters=hw_image.neuroglancer_shader_parameters(mad_scale=5.0), ) return ng_asset