Closed 0todd0000 closed 3 years ago
The folder was reorganized as recommended and the addAbovePath was deleted.
However, can I still let the a line addpath(genpath("../src"))
in the example scripts to add only the source code path or is this prohibited ?
I still wrote how to add only the required path in the installation instructions.
Please do not alter the path in scripts. Paths are relevant only to installation.
If the package is not installed correctly, then the scripts should not execute. When the package is correctly installed, then the scripts should execute properly.
Please do not mix installation with demo scripts.
The line with the installation procedure was deleted from all the examples.
Ok, thank you!
This issue highlights a few different issues related to installation. I am submitting this as one issue because they are all related, and I've suggested one solution below that would solve all of these issues.
Minor issue: Installation instructions
addpath
, for example, is insufficient because thefctSPM
function will only execute if the subfolders are also added.Minor issue: Unneeded directories added to path
addAbovePath.m
adds far too many directories, and mainly unnecessary directories to the path. Below is a full list of the directories that it added to my path. Only few of these directories actually need to be added to the path.Major issue: DO NOT ADJUST USER PATHS The current scripts in
Examples
call theaddAbovePath.m
function. This is highly problematic for two main reasons:addAbovePath.m
is undocumented.To solve these problems I suggest the following:
addAbovePath.m
from the repositoryCurrently the directory structure is:
I suggest reorganizing as follows:
With this organization it will be easy to explain installation, and to solve all other problems mentioned in this issue. Installation could be explained using, for example: