mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-12 21:03:53 +01:00
setting detsize after hostname should throw also for single module for consistency (#1000)
Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
This commit is contained in:
1 parent
6add9aad5d
commit
0b9fd0664e
1 file changed
+2
-1
@@ -330,7 +330,8 @@ slsDetectorDefs::xy DetectorImpl::getNumberOfChannels() const {
|
||||
}
|
||||
|
||||
void DetectorImpl::setNumberOfChannels(const slsDetectorDefs::xy c) {
|
||||
if (size() > 1) {
|
||||
// detsize is set before hostname
|
||||
if (size() >= 1) {
|
||||
throw RuntimeError(
|
||||
"Set the number of channels before setting hostname.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user