Skip to content
Snippets Groups Projects
Commit 4a8d70ab authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #3008: Merged task #2793 with trunk

parent c2c56ff3
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ Observation::Observation(ParameterSet* aParSet,
// by default, use all psets
std::vector<unsigned> phaseThreePsets;
if (aParSet->isDefined(olapprefix+"CNProc.phaseThreePsets"))
phaseTwoPsets = aParSet->getUint32Vector(olapprefix+"CNProc.phaseThreePsets", true);
phaseThreePsets = aParSet->getUint32Vector(olapprefix+"CNProc.phaseThreePsets", true);
if (phaseThreePsets.empty())
for (unsigned p = 0; p < 64; p++)
phaseThreePsets.push_back(p);
......
......@@ -66,6 +66,16 @@ int main (int argc, char* argv[])
Observation obs2(&parSet1);
cout << obs2 << endl;
// test storage node assignment
parSet1.add("ObsSW.OLAP.CNProc.phaseOnePsets", "[]");
parSet1.add("ObsSW.OLAP.CNProc.phaseTwoPsets", "[]");
parSet1.add("ObsSW.OLAP.CNProc.phaseThreePsets", "[]");
parSet1.add("ObsSW.Observation.DataProducts.Output_CoherentStokes.enabled", "true");
parSet1.add("ObsSW.Observation.DataProducts.Output_CoherentStokes.filenames", "[beam0.h5,beam1.h5]");
parSet1.add("ObsSW.Observation.DataProducts.Output_CoherentStokes.locations", "[/,/]");
Observation obs4(&parSet1);
ASSERTSTR(obs4.streamsToStorage.size() == 2, "Each file should have its own stream to storage");
cout << ">>>" << endl;
// test conflicts in clock
ParameterSet conflictPS1("tObservation.in_conflict1");
......
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