2025-05-05 11:58:57 -04:00
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "const/bindings.h"
|
|
|
|
|
#include "composition/bindings.h"
|
2025-05-05 14:36:32 -04:00
|
|
|
#include "config/bindings.h"
|
2025-05-13 14:18:38 -04:00
|
|
|
#include "eos/bindings.h"
|
2025-06-13 09:31:05 -04:00
|
|
|
#include "polytrope/bindings.h"
|
2025-05-05 11:58:57 -04:00
|
|
|
|
2025-06-12 13:46:32 -04:00
|
|
|
PYBIND11_MODULE(serif, m) {
|
|
|
|
|
m.doc() = "Python bindings for the SERiF project";
|
2025-05-05 11:58:57 -04:00
|
|
|
|
|
|
|
|
auto compMod = m.def_submodule("composition", "Composition-module bindings");
|
|
|
|
|
register_comp_bindings(compMod);
|
|
|
|
|
|
|
|
|
|
auto constMod = m.def_submodule("constants", "Constants-module bindings");
|
|
|
|
|
register_const_bindings(constMod);
|
2025-05-05 14:36:32 -04:00
|
|
|
|
|
|
|
|
auto configMod = m.def_submodule("config", "Configuration-module bindings");
|
|
|
|
|
register_config_bindings(configMod);
|
2025-05-13 14:18:38 -04:00
|
|
|
|
|
|
|
|
auto eosMod = m.def_submodule("eos", "EOS-module bindings");
|
|
|
|
|
register_eos_bindings(eosMod);
|
2025-06-13 09:31:05 -04:00
|
|
|
|
|
|
|
|
auto polytropeMod = m.def_submodule("polytrope", "Polytrope-module bindings");
|
|
|
|
|
register_polytrope_bindings(polytropeMod);
|
2025-05-05 11:58:57 -04:00
|
|
|
}
|