Mercurial > repos > imgteam > libcarna_render
diff render.py @ 4:a9f10dceb17e draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/libcarna/ commit 99d6ebe67515f1362ea4412b143ab2a140c8d631
| author | imgteam |
|---|---|
| date | Tue, 13 Jan 2026 12:21:55 +0000 |
| parents | 31a2e1909ae5 |
| children |
line wrap: on
line diff
--- 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
