![]() |
NEURON
|
#include <../../nrnconf.h>#include <cstdio>#include <optional>#include <InterViews/resource.h>#include <nrnoc2iv.h>#include <classreg.h>#include "neuron/unique_cstr.hpp"#include "nrnpython.h"#include "hoccontext.h"#include "nrnpy.h"#include "nrnpy_utils.h"#include "oc_ansi.h"#include "parse.hpp"#include <nanobind/nanobind.h>#include "nrnmpi.h"Go to the source code of this file.
Classes | |
| struct | Py2Nrn |
Functions | |
| static neuron::unique_cstr | nrnpyerr_str () |
| Full python traceback error message returned as string. More... | |
| static nb::object | nrnpy_pyCallObject (nb::callable, nb::object) |
| static void | call_python_with_section (Object *pyact, Section *sec) |
| static void * | opaque_obj2pyobj (Object *ho) |
| int | nrnpy_ho_eq_po (Object *ho, PyObject *po) |
| static int | pysame (Object *o1, Object *o2) |
| PyObject * | nrnpy_hoc2pyobject (Object *ho) |
| Object * | nrnpy_pyobject_in_obj (PyObject *po) |
| static void | py2n_component (Object *ob, Symbol *sym, int nindex, int isfunc) |
| static void | hpoasgn (Object *o, int type) |
| static nb::object | hoccommand_exec_help1 (nb::object po) |
| static nb::object | hoccommand_exec_help (Object *ho) |
| static double | praxis_efun (Object *ho, Object *v) |
| static int | hoccommand_exec (Object *ho) |
| static int | hoccommand_exec_strret (Object *ho, char *buf, int size) |
| static void | grphcmdtool (Object *ho, int type, double x, double y, int key) |
| static Object * | callable_with_args (Object *ho, int narg) |
| static double | func_call (Object *ho, int narg, int *err) |
| static double | guigetval (Object *ho) |
| static void | guisetval (Object *ho, double x) |
| static int | guigetstr (Object *ho, char **cpp) |
| static void | setpickle () |
| static std::vector< char > | pickle (PyObject *p) |
| static std::vector< char > | po2pickle (Object *ho) |
| static nb::object | unpickle (const char *s, std::size_t len) |
| static nb::object | unpickle (const std::vector< char > &s) |
| static Object * | pickle2po (const std::vector< char > &s) |
| std::vector< char > | call_picklef (const std::vector< char > &fname, int narg) |
| static std::vector< int > | mk_displ (int *cnts) |
| static nb::list | char2pylist (const std::vector< char > &buf, const std::vector< int > &cnt, const std::vector< int > &displ) |
| static Object * | py_alltoall_type (int size, int type) |
| static PyThreadState * | save_thread () |
| static void | restore_thread (PyThreadState *g) |
| void | nrnpython_reg_real_nrnpython_cpp (neuron::python::impl_ptrs *ptrs) |
| void | nrnpython_reg_real_nrnpy_hoc_cpp (neuron::python::impl_ptrs *ptrs) |
| static void * | p_cons (Object *) |
| static void | p_destruct (void *v) |
| NRN_EXPORT void | nrnpython_reg_real (neuron::python::impl_ptrs *ptrs) |
| Populate NEURON state with information from a specific Python. More... | |
Variables | |
| static PyObject * | main_module |
| static PyObject * | main_namespace |
| static nb::callable | loads |
| static nb::callable | dumps |
| std::vector<char> call_picklef | ( | const std::vector< char > & | fname, |
| int | narg | ||
| ) |
Definition at line 601 of file nrnpy_p2h.cpp.
Definition at line 36 of file nrnpy_p2h.cpp.
Definition at line 397 of file nrnpy_p2h.cpp.
|
static |
Definition at line 642 of file nrnpy_p2h.cpp.
|
static |
Definition at line 423 of file nrnpy_p2h.cpp.
|
static |
Definition at line 379 of file nrnpy_p2h.cpp.
|
static |
Definition at line 488 of file nrnpy_p2h.cpp.
|
static |
Definition at line 468 of file nrnpy_p2h.cpp.
|
static |
Definition at line 478 of file nrnpy_p2h.cpp.
|
static |
Definition at line 339 of file nrnpy_p2h.cpp.
|
static |
Definition at line 312 of file nrnpy_p2h.cpp.
|
static |
Definition at line 300 of file nrnpy_p2h.cpp.
|
static |
Definition at line 357 of file nrnpy_p2h.cpp.
|
static |
Definition at line 248 of file nrnpy_p2h.cpp.
|
static |
Definition at line 633 of file nrnpy_p2h.cpp.
Definition at line 61 of file nrnpy_p2h.cpp.
Definition at line 77 of file nrnpy_p2h.cpp.
|
static |
if (!p) { auto mes = nrnpyerr_str(); if (mes.is_valid()) { Fprintf(stderr, "%s\n", mes.c_str()); free(mes); hoc_execerror("Call of Python Callable failed", NULL); } if (PyErr_Occurred()) { PyErr_Print(); // Python process will exit with the error code specified by the SystemExit instance. } }
Definition at line 101 of file nrnpy_p2h.cpp.
Definition at line 91 of file nrnpy_p2h.cpp.
|
static |
Full python traceback error message returned as string.
Caller should free the return value if not NULL
Definition at line 561 of file nrnpy_p2h.cpp.
| NRN_EXPORT void nrnpython_reg_real | ( | neuron::python::impl_ptrs * | ptrs | ) |
Populate NEURON state with information from a specific Python.
| ptrs | Logically a return value; avoidi |
Definition at line 915 of file nrnpy_p2h.cpp.
| void nrnpython_reg_real_nrnpy_hoc_cpp | ( | neuron::python::impl_ptrs * | ptrs | ) |
Definition at line 3491 of file nrnpy_hoc.cpp.
| void nrnpython_reg_real_nrnpython_cpp | ( | neuron::python::impl_ptrs * | ptrs | ) |
Definition at line 415 of file nrnpython.cpp.
|
static |
Definition at line 54 of file nrnpy_p2h.cpp.
|
static |
Definition at line 903 of file nrnpy_p2h.cpp.
|
static |
Definition at line 907 of file nrnpy_p2h.cpp.
|
static |
Definition at line 525 of file nrnpy_p2h.cpp.
|
static |
Definition at line 551 of file nrnpy_p2h.cpp.
|
static |
Definition at line 534 of file nrnpy_p2h.cpp.
Definition at line 318 of file nrnpy_p2h.cpp.
Definition at line 137 of file nrnpy_p2h.cpp.
|
static |
Definition at line 726 of file nrnpy_p2h.cpp.
Definition at line 69 of file nrnpy_p2h.cpp.
|
static |
Definition at line 896 of file nrnpy_p2h.cpp.
|
static |
Definition at line 893 of file nrnpy_p2h.cpp.
|
static |
Definition at line 506 of file nrnpy_p2h.cpp.
|
static |
Definition at line 543 of file nrnpy_p2h.cpp.
|
static |
Definition at line 547 of file nrnpy_p2h.cpp.
|
static |
Definition at line 504 of file nrnpy_p2h.cpp.
|
static |
Definition at line 503 of file nrnpy_p2h.cpp.
|
static |
Definition at line 24 of file nrnpy_p2h.cpp.
|
static |
Definition at line 25 of file nrnpy_p2h.cpp.