# HG changeset patch
# User imgteam
# Date 1768306915 0
# Node ID a9f10dceb17e1945bd8d5f2cfa5d61dc8578714f
# Parent 31a2e1909ae56668b501306204cd587ab0d35ffc
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/libcarna/ commit 99d6ebe67515f1362ea4412b143ab2a140c8d631
diff -r 31a2e1909ae5 -r a9f10dceb17e render.py
--- a/render.py Tue Jan 06 11:26:05 2026 +0000
+++ b/render.py Tue Jan 13 12:21:55 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 31a2e1909ae5 -r a9f10dceb17e render.xml
--- a/render.xml Tue Jan 06 11:26:05 2026 +0000
+++ b/render.xml Tue Jan 13 12:21:55 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 @@
+
+
+
+