Skip to content
Snippets Groups Projects
Commit 61985a0d authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-546: Use dipoles().size() in transient und dipoleGroups().size() in spectral mode

parent 95e51445
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,15 @@ namespace LOFAR
ScopedDelayCancellation dc;
try {
ScopedLock slH5(itsH5Mutex);
itsStation.nofDipoles().value = itsStation.dipoleGroups().size();
if(doTransient() == true)
{
itsStation.nofDipoles().value = itsStation.dipoles().size();
}
else
{
itsStation.nofDipoles().value = itsStation.dipoleGroups().size();
}
} catch (exception& exc) { // dal::DALException or worse
LOG_WARN_STR("TBB: failed to set station NOF_DIPOLES attribute: " << exc.what());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment