Skip to content

Does not run #2

Description

@arwelHughes

I am struggling to get any of the examples to run at all.
In runDREAM_zs, it tries to set a path, but hard codes the directory delimiter for windows, and the directory name is miss spelt. Also it does not add the functions, data or post-processing directories. Better than a string is....

DREAM_dir = pwd;
EXAMPLE_dir = fullfile(pwd,'examples',['example_' num2str(example)]);
FUNCTION_dir = fullfile(pwd,'functions');
DATA_dir = fullfile(pwd,'data');
POST_dir = fullfile(pwd,'postprocessing');

% Add subdirectory to search path
addpath(EXAMPLE_dir);
addpath(FUNCTION_dir);
addpath(DATA_dir);
addpath(POST_dir);

... the at least everything can be found.

However, even then, trying to run it gives the error.....

Output argument "Best" (and maybe others) not assigned during call to "CompDensity".

Error in dream_zs (line 93)
[p,log_p,fx(:,1:MCMCPar.seq),MCMCPar.Best] = CompDensity(X,MCMCPar,Measurement,ModelName,Extra);

Error in runDREAM_ZS (line 319)
[Sequences,X,Z,output,fx] = dream_zs(MCMCPar,ModelName,Extra,ParRange);

Am I missing something in how to get this to run?

(I'm trying this in Matlab 2021a on a Mac...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions