Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field_prepend #4

Open
teddyrendahl opened this issue Apr 13, 2018 · 0 comments
Open

field_prepend #4

teddyrendahl opened this issue Apr 13, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@teddyrendahl
Copy link
Contributor

Guesses what the name of a field in an event document will be based on the signal name and object. In general, we should use this less and have objects give us hints. This is still useful and also included in many of the HXRSnD scans.

def field_prepend(field, obj):
    """
    Prepend the name of the Ophyd object to the field name
    Parameters
    ----------
    field : str
        Field name
    obj : object
        Object with :attr:`.name`
    
    Returns
    -------
    target_field : str
@teddyrendahl teddyrendahl added the enhancement New feature or request label Apr 13, 2018
@teddyrendahl teddyrendahl added this to the HXRSnD milestone Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant