Skip to content

Commit e11c48a

Browse files
author
Gereon A. Kaiping
committed
Add default value that reduces RTwSA to RT
1 parent 59e9583 commit e11c48a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/beast/evolution/tree/RandomTreeWithSA.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
package beast.evolution.tree;
22

3+
import java.util.ArrayList;
34
import java.util.LinkedHashSet;
45
import java.util.List;
56
import java.util.Set;
67

78
import beast.core.Input;
89
import beast.core.Input.Validate;
910
import beast.core.util.Log;
11+
import beast.evolution.alignment.Taxon;
1012
import beast.evolution.alignment.TaxonSet;
1113

1214
public class RandomTreeWithSA extends RandomTree {
1315

14-
final public Input<TaxonSet> startAsSampledAncestors = new Input<>("sampledAncestor",
15-
"Taxa to start as sampled ancestors", Validate.REQUIRED);
16+
final public Input<TaxonSet> startAsSampledAncestors = new Input<TaxonSet>("sampledAncestor",
17+
"Taxa to start as sampled ancestors", new TaxonSet(new ArrayList<Taxon>()));
1618

1719
@Override
1820
public void initAndValidate() {

0 commit comments

Comments
 (0)