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.

day_to_blocks_v2.m 878 B

12345678910111213141516171819202122
  1. function blocks = day_to_blocks_v2(datadir)
  2. all_folders = dir(datadir);
  3. all_folders = all_folders([all_folders(:).isdir]);
  4. all_folders = all_folders(~ismember({all_folders(:).name},{'.','..'}));
  5. blocks = length(all_folders);
  6. for b = 1:blocks
  7. clear block_number all_block_files
  8. block_number = str2num(all_folders(b).name(7:end));
  9. block_pat = [all_folders(b).folder,'\',all_folders(b).name];
  10. all_block_files = dir(fullfile(datadir,['*B',sprintf('%03.0f', block_number),'*']));
  11. if length(all_block_files) ~= 14 % 2 instances by 3x2+2 files
  12. files_ok = input('The number of files is incorrect!! Do you really want to proceed? (1 = true): ');
  13. else
  14. files_ok = 1;
  15. end
  16. if files_ok
  17. for i = 1:length(all_block_files)
  18. movefile([datadir,'\',all_block_files(i).name],block_pat);
  19. end
  20. end
  21. end