Skip to content

Commit

Permalink
Change filename extension for requirements
Browse files Browse the repository at this point in the history
To prevent for any confusions with the documentation.
  • Loading branch information
pflanzenhueter committed May 27, 2019
1 parent 628f432 commit 37024d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
File renamed without changes.
11 changes: 6 additions & 5 deletions MASH-FRET/tools/check_dependencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ function check_dependencies(mode)
% Check toolbox dependencies of MASH-FRET

% Input Arguments
% Discovery mode: find required toolboxes among the installed ones and writes them to a file requirements.md
% Discovery mode: find required toolboxes among the installed ones and
% writes them to a file requirements.txt
% Note 1: run check_dependencies.m in Discovery mode only on an installation where all toolboxes are available, otherwise the list may be incomplete)
% Note 2: Running check_dependencies.m in Discovery mode requires MATLAB >2016b
% Analysis mode: check whether the required toolboxes (specified in requirements.md) are installed on the current system)
% Analysis mode: check whether the required toolboxes (specified in requirements.txt) are installed on the current system)

root = fileparts(which('MASH'));
if isempty(root)
fprintf('MASH-FRET root not found!');
return
end
requirementsFile = [root, '/requirements.md'];
requirementsFile = [root, '/requirements.txt'];

switch mode
case 'discovery'
Expand Down Expand Up @@ -44,13 +45,13 @@ function check_dependencies(mode)
end
fclose(fileID);
else
fprintf('Note: requirements.md already exists.\n')
fprintf('Note: requirements.txt already exists.\n')
end


case 'analysis'
if ~exist(requirementsFile, 'file')
fprintf('Error: requirements.md file does not exist\n')
fprintf('Error: requirements.txt file does not exist\n')
return
end

Expand Down

0 comments on commit 37024d6

Please sign in to comment.