Skip to content
Snippets Groups Projects
Commit dfa27ed5 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

bug 1207:

Needed to make path of vds file absolute
parent bc524fc7
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <lofar_config.h> #include <lofar_config.h>
#include <MWCommon/VdsDesc.h> #include <MWCommon/VdsDesc.h>
#include <casa/OS/Path.h>
#include<stdexcept> #include<stdexcept>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
...@@ -34,7 +35,7 @@ int main(int argc, const char* argv[]) ...@@ -34,7 +35,7 @@ int main(int argc, const char* argv[])
{ {
try { try {
if (argc < 3) { if (argc < 3) {
cout << "Run as: makevds outName in1 in2 ..." << endl; cout << "Run as: combinevds outName in1 in2 ..." << endl;
return 0; return 0;
} }
...@@ -50,7 +51,8 @@ int main(int argc, const char* argv[]) ...@@ -50,7 +51,8 @@ int main(int argc, const char* argv[])
vpds.reserve (argc-2); vpds.reserve (argc-2);
for (int i=2; i<argc; ++i) { for (int i=2; i<argc; ++i) {
VdsPartDesc* vpd = new VdsPartDesc(ParameterSet(argv[i])); VdsPartDesc* vpd = new VdsPartDesc(ParameterSet(argv[i]));
vpd->setName (argv[i], vpd->getFileSys()); casa::Path path(argv[i]);
vpd->setName (path.absoluteName(), vpd->getFileSys());
vpds.push_back (vpd); vpds.push_back (vpd);
vpd->clearParms(); vpd->clearParms();
const vector<int>& chans = vpd->getNChan(); const vector<int>& chans = vpd->getNChan();
......
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