Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Univariate Gaussian MLX produces error upon readSample #1

Open
jonasallgeier opened this issue Oct 18, 2021 · 3 comments
Open

Univariate Gaussian MLX produces error upon readSample #1

jonasallgeier opened this issue Oct 18, 2021 · 3 comments

Comments

@jonasallgeier
Copy link

I am running sampling_univariate_gaussian_distribution_via_paradram.mlx on Matlab R2021b and get an error message on line 51 (sample = pmpd.readSample();):

Error using ParaDRAM_class/readTabular
Too many output arguments.
Error in ParaDRAM_class/readSample (line 176)
        sampleList = self.readTabular(callerName,file,delimiter); 

Is that a known problem? How can it be fixed?

@shahmoradi
Copy link
Member

Hi @jonasallgeier, what version of MATLAB are you using?

@shahmoradi
Copy link
Member

I just tested the latest release of the library with MATLAB 2021a and the software and example work as intended. A few possible remedies:

  1. check if your MATLAB version is supported by ParaMonte. That means any version of MATLAB that is newer than 2018a. MATLAB 2018a should also work with ParaMonte, albeit on Windows you will have to install the patch that MATLAB released after MATLAB 2018a release. Without the MATLAB patch, ParaMonte won't work on MATLAB 2018a on Windows (Linux and macOS are fine).
  2. Make sure you are using the latest ParaMonte version for MATLAB: https://www.cdslab.org/paramonte/notes/installation/matlab/#the-fast-way
  3. Let me know if the problem persists.

@jonasallgeier
Copy link
Author

Thank you very much for the quick reply. I use R2021b on Ubuntu 20.04. Apparently the ParaMonte version was the issue: Previously I used ParaDram (obtained from the first link in the description of https://www.mathworks.com/matlabcentral/fileexchange/80866-matdram-delayed-rejection-adaptive-metropolis-mcmc). With the ParaMonte version of your link it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants