Commit a9b33596 authored by J Mammeri's avatar J Mammeri Committed by Jibril Mammeri
Browse files

"Add lsmot command, by default do not include soft axes in wa"

This reverts commit e4e99f5f.
parent ef78b926
Pipeline #39005 failed with stages
in 58 seconds
......@@ -19,7 +19,7 @@ def SoftAxis(
  • Sorry @mammeri , still not ok.

    This flag exports the axis to the session env dict (that we directly access as any global in the shell, for example), but what is asked here is different: we want the soft axis to be exported to the shell globals by default, it is convenient for users, but for performance reasons we do not want to have it shown in wa and as a positioner for scan metadata by default.

    What about adding a positioner property ? If an axis is not a positioner it would not show in wa and it would not show in positioners for scans.

    Let's not expose positioner to __init__: it adds a keyword, which is better to avoid ?

    Next time will be the one ! 😉

  • Maybe we should have a quick chat on this tomorrow

Please register or sign in to reply
......@@ -177,3 +177,4 @@ def fill_positioners(scan):
rd["positioners_units"] = units
return rd
......@@ -148,6 +148,7 @@ __all__ = (
......@@ -263,7 +264,7 @@ def lslog(glob: str = None, debug_only=False) -> None:
Search for loggers
glob: a logger name with optional glob matching
debug_only: True to display only loggers at debug level
debug_only: True to display only loggers at debug level
(equivalent to lslog)
......@@ -525,6 +526,15 @@ def wa(**kwargs):
def lsmot(**kwargs):
Displays names of all motors
for name, _, _, _ in iter_axes_position_all(**kwargs):
print("* {}".format(name))
"intended usage: wm(axis1, axis2, ... ) Hint:",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment