From e54f0ec18cc3f185173a91ce82e6c5acfcb3e780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=BCmmerer?= Date: Mon, 25 Mar 2024 13:02:54 +0100 Subject: [PATCH] ENH: make MIT1003 loading less verbose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Kümmerer --- pysaliency/external_datasets/mit.py | 2 +- pysaliency/external_datasets/scripts/extract_fixations.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pysaliency/external_datasets/mit.py b/pysaliency/external_datasets/mit.py index 229049a..2cef352 100644 --- a/pysaliency/external_datasets/mit.py +++ b/pysaliency/external_datasets/mit.py @@ -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.') diff --git a/pysaliency/external_datasets/scripts/extract_fixations.m b/pysaliency/external_datasets/scripts/extract_fixations.m index 1498b90..6f988ff 100644 --- a/pysaliency/external_datasets/scripts/extract_fixations.m +++ b/pysaliency/external_datasets/scripts/extract_fixations.m @@ -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));