Commit b9235642 authored by Jan Kiene's avatar Jan Kiene
Browse files

add printout to check_for_changes.py

parent 125e384b
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
import argparse
import csv
import sys
import numpy as np


THRESH = 0.01
@@ -32,6 +31,10 @@ def check_linewise_logfile(filepath, cols):
    change_ratios = [abs(float(curr[i]) / float(prev[i]) - 1) > THRESH for i in cols]
    changes_found = any(change_ratios)

    if changes_found:
        print("Previous log line:", prev)
        print("Current log line:", curr)

    return changes_found