# HG changeset patch
# User imgteam
# Date 1768306938 0
# Node ID 8fa86f0ebca2b4104d90138ae75ac32056ed09a2
# Parent e07bfdcb1d26cac5b12ec3e74d84824d8813238f
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/libcarna/ commit 99d6ebe67515f1362ea4412b143ab2a140c8d631
diff -r e07bfdcb1d26 -r 8fa86f0ebca2 render.py
--- a/render.py Tue Jan 06 11:26:30 2026 +0000
+++ b/render.py Tue Jan 13 12:22:18 2026 +0000
@@ -70,6 +70,7 @@
GEOMETRY_TYPE_INTENSITIES,
intensities.normalize_axes_like(tool.args.params['axes']).data,
parent=root,
+ units=tool.args.params['units'],
spacing=[
{
'X': intensities.metadata.pixel_size[0] or 1,
@@ -123,6 +124,7 @@
value if val_type == 'relative' else intensities_volume.normalized(value),
)
cmap_kwargs['ramp'] = tuple(ramp_values)
+ cmap_kwargs['n_samples'] = 1000 # high precision is required when sampling ramps to avoid "soft" corners
mode.cmap(tool.args.params['colormap'], **cmap_kwargs)
# Render
diff -r e07bfdcb1d26 -r 8fa86f0ebca2 render.xml
--- a/render.xml Tue Jan 06 11:26:30 2026 +0000
+++ b/render.xml Tue Jan 13 12:22:18 2026 +0000
@@ -5,10 +5,10 @@
validators.xml
colormaps.xml
0.2.0
- 1
-
-
- 2
+
+
+
@@ -24,8 +24,10 @@
-
-
+
+
@@ -116,6 +118,7 @@
#end if
"sample_rate": $sample_rate,
+ "units": "$units",
"axes": "$axes",
"width": $width,
"height": $height,
@@ -171,6 +174,10 @@
+
+
+
+