/// 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; }
void create_dir(std::string filename) { filename = sanitize_path(filename); python_run(elib::fmt("create_dir('%s')", filename)); }
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)); }
inline void python_clean(std::string const & s) { python_run(elib::fmt("clean('%s')", s)); }
inline void python_init(std::string const & s) { python_run(elib::fmt("init('%s')", s)); }
void create_socket(std::string file) { file = sanitize_path(file); python_run(elib::fmt("create_socket('%s')", file)); }
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)); }