Skip to content

Fix repr in linear_transform - #3842

Merged
MridulS merged 2 commits into
scipp:mainfrom
MridulS:gh_3834
Feb 12, 2026
Merged

MridulS merged 2 commits into
scipp:mainfrom
MridulS:gh_3834

Conversation

@MridulS

@MridulS MridulS commented Feb 11, 2026 •

Copy link
Copy Markdown
Member

Fixes #3834

Looks better now:

>>> import numpy as np
>>> import scipp as sc
>>> identity = sc.spatial.linear_transform(value=np.identity(3))
>>> identity
<scipp.Variable> ()  linear_transform3  [dimensionless]  ((1, 0, 0), (0, 1, 0), (0, 0, 1))

@MridulS
MridulS marked this pull request as ready for review February 11, 2026 21:59
@MridulS
MridulS enabled auto-merge (squash) February 12, 2026 08:08
@MridulS
MridulS merged commit c82627c into scipp:main Feb 12, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too many commas in repr of linear transform

2 participants