|
|
@ -2,6 +2,7 @@ |
|
|
|
#define ATTRACTOR_HPP |
|
|
|
|
|
|
|
#include "Logger.hpp" |
|
|
|
#include <iostream> |
|
|
|
#include <fstream> |
|
|
|
#include <string> |
|
|
|
|
|
|
@ -17,7 +18,10 @@ public: |
|
|
|
LogInfo("Reading file '%s'...\n", filename.c_str()); |
|
|
|
|
|
|
|
stfu::node system; |
|
|
|
system.read(filename.c_str()); |
|
|
|
if(!system.read(filename.c_str())){ |
|
|
|
std::cerr << "Couldn't open file(" << filename << ") for reading\n"; |
|
|
|
exit(-1); |
|
|
|
} |
|
|
|
|
|
|
|
kernel = AttractorKernel::createAttractorKernel(system.getChild("AttractorKernel")); |
|
|
|
projector = Projector::createProjector(system.getChild(system.getValue("Projector")), kernel->getDimension()); |
|
|
|