rambaut / beast-mcmc

Automatically exported from code.google.com/p/beast-mcmc
0 stars 0 forks source link

BeautiOptions.updateAll() stop user to customize clock rates #549

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The code below is not smart to keep GUI event acting correctly, so as to move 
to initClockModelGroup() that only used in BeautiImporter when loading new 
data.    

       for (ClockModelGroup clockModelGroup : getClockModelGroups()) {
            if (clockModelGroup.contain(Microsatellite.INSTANCE, options)) {
                if (options.getPartitionClockModels(clockModelGroup).size() == 1) {
                    fixRateOfFirstClockPartition(clockModelGroup);
                    options.getPartitionClockModels(clockModelGroup).get(0).setEstimatedRate(true);
                } else {
                    fixMeanRate(clockModelGroup);
                }
            } else if (!(clockModelGroup.getRateTypeOption() == FixRateType.TIP_CALIBRATED
                    || clockModelGroup.getRateTypeOption() == FixRateType.NODE_CALIBRATED
                    || clockModelGroup.getRateTypeOption() == FixRateType.RATE_CALIBRATED)) {
                //TODO correct?
                fixRateOfFirstClockPartition(clockModelGroup);
            }
        }

Original issue reported on code.google.com by dong.w.xie@gmail.com on 25 Nov 2011 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by dong.w.xie@gmail.com on 25 Nov 2011 at 1:46