Skip to content

Commit

Permalink
Update src/scippnexus/nxtransformations.py
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Heybrock <12912489+SimonHeybrock@users.noreply.github.com>
  • Loading branch information
jokasimr and SimonHeybrock authored Sep 26, 2024
1 parent 7b7c266 commit 71dc6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scippnexus/nxtransformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def make_transformation(
return transform
except (sc.DimensionError, sc.UnitError, TransformationError) as e:
msg = (
f"Failed to load {self.name} as {NXtransformations.__name__}: {e} "
"Falling back to returning non transformed value."
f"Failed to convert {self.name} into a transformation: {e} "
"Falling back to returning non underlying value."
)
warnings.warn(msg, stacklevel=2)
# TODO We should probably try to return some other data structure and
Expand Down

0 comments on commit 71dc6c8

Please sign in to comment.