/// Python specialization of dervied analysis components
int PythonInterface::derived_map_ac(const String& ac_name)
{
#ifdef MPI_DEBUG
    Cout << "analysis server " << analysisServerId << " invoking " << ac_name
         << " within PythonInterface." << std::endl;
#endif // MPI_DEBUG

  int fail_code = python_run(ac_name);

  // Failure capturing
  if (fail_code)
    throw fail_code;

  return 0;
}
Example #2
0
 void create_dir(std::string filename)
 {
     filename = sanitize_path(filename);
     python_run(elib::fmt("create_dir('%s')", filename));
 }
Example #3
0
 void create_file(std::string filename, std::size_t size = 0)
 {
     filename = sanitize_path(filename);
     python_run(elib::fmt("create_file('%s', %u)", filename, size));
 }
Example #4
0
inline void python_clean(std::string const & s)
{
    python_run(elib::fmt("clean('%s')", s));
}
Example #5
0
inline void python_init(std::string const & s)
{
    python_run(elib::fmt("init('%s')", s));
}
Example #6
0
 void create_socket(std::string file)
 {
     file = sanitize_path(file);
     python_run(elib::fmt("create_socket('%s')", file));
 }
Example #7
0
 void create_hardlink(std::string source, std::string to)
 {
     source = sanitize_path(source);
     to = sanitize_path(to);
     python_run(elib::fmt("create_hardlink('%s', '%s')", source, to));
 }