(schedule)
| 888 | |
| 889 | @staticmethod |
| 890 | def read_schedule(schedule): |
| 891 | m = re.search(r"([^/]*)\.mpc", schedule) |
| 892 | if m: |
| 893 | schedule = m.group(1) |
| 894 | if not os.path.exists(schedule): |
| 895 | schedule = "Programs/Schedules/%s.sch" % schedule |
| 896 | |
| 897 | try: |
| 898 | return open(schedule).readlines() |
| 899 | except FileNotFoundError: |
| 900 | raise Exception( |
| 901 | "%s not found, have you compiled the program?" % schedule) |
| 902 | |
| 903 | @classmethod |
| 904 | def read_tapes(cls, schedule): |
no test coverage detected