Skip to content

Commit

Permalink
ENH: make MIT1003 loading less verbose
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kümmerer <[email protected]>
  • Loading branch information
matthias-k committed Mar 25, 2024
1 parent 03b71ea commit e54f0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysaliency/external_datasets/mit.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check_size(f):
subject_path = os.path.join('DATA', subject)
outfile = '{0}_{1}.mat'.format(stimulus, subject)
outfile = os.path.join(out_path, outfile)
cmds.append("fprintf('%d/%d\\n', {}, {});".format(n * len(subjects) + subject_id, total_cmd_count))
cmds.append("fprintf('%d/%d\\r', {}, {});".format(n * len(subjects) + subject_id, total_cmd_count))
cmds.append("extract_fixations('{0}', '{1}', '{2}');".format(stimulus, subject_path, outfile))

print('Running original code to extract fixations. This can take some minutes.')
Expand Down
2 changes: 1 addition & 1 deletion pysaliency/external_datasets/scripts/extract_fixations.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function [ ] = extract_fixations(filename, datafolder, outname)
fprintf('Loading %s %s\n', datafolder, filename);
% fprintf('Loading %s %s\n', datafolder, filename);
addpath('DatabaseCode')
datafile = strcat(filename(1:end-4), 'mat');
load(fullfile(datafolder, datafile));
Expand Down

0 comments on commit e54f0ec

Please sign in to comment.