void AMGenericStepScanConfigurationView::onI0ChoiceChanged(int index)
{
	if (configuration_) {
		int configurationIndex = configuration_->detectorConfigurations().indexOf(i0ComboBox_->itemData(index).toString());

		if (configurationIndex >= 0 && configurationIndex < configuration_->detectorConfigurations().count())
			configuration_->setI0(configuration_->detectorConfigurations().at(configurationIndex));
		else
			configuration_->setI0(AMDetectorInfo());
	}
}
Пример #2
0
AMDetectorInfo AMDetector::toInfo() const {
    return AMDetectorInfo(name(), description(), units(), acquisitionTime(), readMode());
}