Skip to content

Commit

Permalink
deprecated MCMCMC and give pointers to CoupledMCMC instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Oct 8, 2024
1 parent 2aa992a commit c72692e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/beastlabs/inference/MCMCMC.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Note that log file names should have $(seed) in their name so " +
"that the first chain uses the actual seed in the file name and all subsequent chains add one to it." +
"Furthermore, the log and tree log should have the same sample frequency.")
@Deprecated(since="Use the CoupledMCMC package instead https://github.com/nicfel/CoupledMCMC")
public class MCMCMC extends MCMC {
public Input<Integer> nrOfChainsInput = new Input<Integer>("chains", " number of chains to run in parallel (default 2)", 2);
public Input<Integer> resampleEveryInput = new Input<Integer>("resampleEvery", "number of samples in between resampling (and possibly swappping) states", 1000);
Expand All @@ -57,6 +58,10 @@ public class MCMCMC extends MCMC {

@Override
public void initAndValidate() {
Log.warning("This class is deprecated");
Log.warning("Use the CoupledMCMCM package instead.");
Log.warning("https://github.com/nicfel/CoupledMCMC");

if (nrOfChainsInput.get() < 1) {
throw new RuntimeException("chains must be at least 1");
}
Expand Down

0 comments on commit c72692e

Please sign in to comment.