detsize in python

This commit is contained in:
Erik Frojdh
2020-09-21 17:18:31 +02:00
parent 9920987b4d
commit f6a442fd10
3 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def to_geo(value):
if isinstance(value, _slsdet.xy):
return Geometry(x = value.x, y = value.y)
else:
raise ValueError("Can only convert sls_detector.xy")
raise ValueError("Can only convert slsdet.xy")
def all_equal(mylist):
"""If all elements are equal return true otherwise false"""