from solar import * def read_tt (filename): """ Reed time table """ with open("missing_FS.txt") as stream: for line in stream: s1, _, s2 = line.split() t1, t2 = map (str_to_datetime, [s1, s2]) yield t1, t2 def extract_SID_11 (): """ Extract SIDs for a given list of intervals """ for t1, t2 in read_tt ("missing_FS.txt"): print(t1,t2) time_filter = make_time_filter (t1, t2) sids = [11] day = t1.date() extract_SID (day, sids, time_filter) if __name__ == "__main__": extract_SID_11()