|
| 1 | +########################## |
| 2 | +# Check if all fits have completed: |
| 3 | + |
| 4 | +experiment_ids = [792813858, 792815735, 794381992, 795073741, 795076128, 795952471, |
| 5 | + 795953296, 796105304, 796108483, 796308505, 797255551, 798404219, |
| 6 | + 803736273, 805784331, 806455766, 806456687, 806989729, 807752719, |
| 7 | + 807753318, 807753334, 808619543, 808621034, 808621958, 809497730, |
| 8 | + 809501118, 811456530, 811458048, 813083478, 815652334, 817267785, |
| 9 | + 820307518, 822647135, 825130141, 826587940, 830093338, 830700781, |
| 10 | + 830700800, 833629926, 833631914, 834279496, 836258936, 836258957, |
| 11 | + 836911939, 837296345, 837729902, 842973730, 843519218, 847125577, |
| 12 | + 848692970, 848694639, 848697604, 848697625, 848698709, 849199228, |
| 13 | + 849203565, 849203586, 850479305, 850489605, 851056106, 851060467, |
| 14 | + 851932055, 852691524, 853328115, 853962951, 853962969, 854703305, |
| 15 | + 855577488, 855582961, 855582981, 856096766, 859147033, 862848066, |
| 16 | + 863735602, 864370674, 873972085, 877022592, 878363088, 879331157, |
| 17 | + 880374622, 880961028] |
| 18 | +mouse_ids= [744911447,756674776,760949537,772622642,772629800,784057617,789992895,791756316,803258370,813703535,820871399,820878203,823826963,834823464] |
| 19 | + |
| 20 | +import psy_tools as ps |
| 21 | +import os |
| 22 | +dir7="/home/alex.piet/codebase/behavior/psy_fits_v7/" |
| 23 | +dir8="/home/alex.piet/codebase/behavior/psy_fits_v8/" |
| 24 | + |
| 25 | + |
| 26 | +def check_sessions(experiment_ids, mouse_ids,dir): |
| 27 | + print('The following sessions need to be fit') |
| 28 | + passive = ps.get_passive_ids() |
| 29 | + not_complete = [] |
| 30 | + for id in experiment_ids: |
| 31 | + if not os.path.isfile(dir+str(id)+".pkl"): |
| 32 | + if id not in passive: |
| 33 | + print(id) |
| 34 | + not_complete.append(id) |
| 35 | + |
| 36 | + print('The following mice need to be fit') |
| 37 | + not_complete_mice = [] |
| 38 | + for id in mouse_ids: |
| 39 | + if not os.path.isfile(dir+"mouse_"+str(id)+".pkl"): |
| 40 | + print(id) |
| 41 | + not_complete_mice.append(id) |
| 42 | + |
| 43 | +check_sessions(experiment_ids, mouse_ids, dir7) |
| 44 | +check_sessions(experiment_ids, mouse_ids, dir8) |
| 45 | + |
| 46 | + |
0 commit comments