Skip to content

Make function for experiment request in get_info.py #282

@KaushikMalapati

Description

@KaushikMalapati

These lines are copied several times in the scripts to get the experiment. Instead, it should be put into a function and called where needed

resp = requests.get(ws_url + "/lgbk/ws/activeexperiment_for_instrument_station",
{"instrument_name": hutch, "station": station})
exp = resp.json().get("value", {}).get("name")

Originally posted by @KaushikMalapati in #281 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions