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

print info about ignored entries (due to alarm state or NaN value)

parent 9f3a036b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ from utils.df import drop_col, compare_dfs, count_true
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
from utils.printing import print_good, print_bad, itemize
def run(clargs):
......@@ -73,9 +73,25 @@ def run_goto(clargs):
if clargs.ignore_alarm:
which = (df["status"] == 0) & (df["severity"] == 0)
if not clargs.quiet:
all_names = df.index
ignored = all_names[~which]
if ignored.size != 0:
print("ignored due to alarm state:")
print(itemize(ignored))
print()
df = df.loc[which]
df = df["value"]
if not clargs.quiet:
which = df.notnull()
all_names = df.index
ignored = all_names[~which]
if ignored.size != 0:
print("ignored due to NaN value:")
print(itemize(ignored))
print()
df.dropna(inplace=True) #TODO: can NaN be a valid value?
values = df.values
......
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