Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

check_log_rec_v2.m 1.1 KB

123456789101112131415161718192021
  1. function out = check_log_rec_v2(monkey,date,datadir,block_number,instances,hubs,stimbit,log_prefix)
  2. disp(['%%%%% Block: ',num2str(block_number)]);
  3. for instance_idx = instances
  4. for hub_idx = hubs
  5. instance_name = ['\Hub',num2str(hub_idx),'-instance',num2str(instance_idx),'_B',sprintf('%03.0f', block_number)];
  6. instance_NEV_filename = [datadir,monkey,'\',date,'\Block_',num2str(block_number),'\',instance_name,'.nev'];
  7. EVENT = openNEV(instance_NEV_filename,'nosave');
  8. Trials_idxs=find(EVENT.Data.SerialDigitalIO.UnparsedData==2^stimbit);%starts at 2^0, till 2^7
  9. load([datadir,monkey,'\_logs\',log_prefix,monkey,'_',date,'_B',num2str(block_number)],'MAT')
  10. is_ok = (length(Trials_idxs)==length(MAT));
  11. if is_ok
  12. disp(['Instance: ',num2str(instance_idx),' Block: ',num2str(hub_idx),' is OK!']);
  13. else
  14. disp(['Instance: ',num2str(instance_idx),' Block: ',num2str(hub_idx),' is NOT ok!!!']);
  15. end
  16. out(instance_idx) = is_ok;
  17. clear instance_name instance_NEV_filename EVENT Trials_idxs MAT is_ok
  18. end
  19. end
  20. fprintf('\n');