def check_fname(fname): df = fu.open_and_accumulate(fname) if not df.index.is_monotonic: logging.warning("{} has non-monotonic index".format(fname))
def get_column_from_timestr(t, col): l1a = fu.L1ADataFile.from_timestr(t) df = fu.open_and_accumulate(l1a.fname) c = calib.Calibrator(df) c.calibrate() return getattr(c, col)