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 0e95be7d authored by augustin_s's avatar augustin_s :snake:
Browse files

refactor

parent fe7d3f60
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ from utils.epics import DataGetter, DataPutter
from utils.execute import parallel, serial
from utils.fileio import load_config, load_csv, store_csv
from utils.printing import print_good, print_bad, itemize
from utils.seq import is_empty
def run(clargs):
......@@ -76,7 +77,7 @@ def run_goto(clargs):
if not clargs.quiet:
all_names = df.index
ignored = all_names[~which]
if ignored.size != 0:
if not is_empty(ignored):
print("ignored due to alarm state:")
print(itemize(ignored))
print()
......@@ -88,7 +89,7 @@ def run_goto(clargs):
which = df.notnull()
all_names = df.index
ignored = all_names[~which]
if ignored.size != 0:
if not is_empty(ignored):
print("ignored due to NaN value:")
print(itemize(ignored))
print()
......
def is_empty(seq):
return len(seq) == 0
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