Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit e0d54d5f authored by augustin_s's avatar augustin_s :snake:
Browse files

added option to ignore PVs that were in an alarm state during check

parent 9427a825
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,12 @@ def run_goto(clargs):
fn = clargs.filename
df = load_csv(fn)
if clargs.ignore_alarm:
which = (df["status"] == 0) & (df["severity"] == 0)
df = df.loc[which]
df = df["value"]
df.dropna(inplace=True)
df.dropna(inplace=True) #TODO: can NaN be a valid value?
values = df.values
chans = df.index
......
......@@ -26,6 +26,7 @@ def handle_clargs():
parser_goto = subparsers.add_parser("goto", help="go to stored values")
parser_goto.add_argument("filename", help="name of input CSV file")
parser_goto.add_argument("-a", "--ignore-alarm", help="do not put into PVs that were in an alarm state during check", action="store_true")
parser_goto.add_argument("-q", "--quiet", help="do not show each channel's answer", action="store_true")
parser_goto.add_argument("-s", "--serial", help="do not run checks in parallel", action="store_true")
parser_goto.add_argument("-t", "--timeout", help="connection and put completion timeout in seconds", type=float, default=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment