Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
#59
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 24, 2019
1 parent 53757ca commit a02d352
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion profile_bluesky/startup/43-procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ def insertScanFilters():


def confirm_instrument_mode(mode_name):
"""True if instrument is in the named mode"""
"""
True if instrument is in the named mode
Parameter
mode_name (str) :
One of the strings defined in ``UsaxsSaxsModes``
"""
expected_mode = UsaxsSaxsModes[mode_name]
return terms.SAXS.UsaxsSaxsMode.value == expected_mode

Expand Down

0 comments on commit a02d352

Please sign in to comment.