-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Finalized technology package in pyfiction
- Loading branch information
Showing
5 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
bindings/pyfiction/include/pyfiction/technology/sidb_nm_position.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// Created by marcel on 21.11.23. | ||
// | ||
|
||
#ifndef PYFICTION_SIDB_NM_POSITION_HPP | ||
#define PYFICTION_SIDB_NM_POSITION_HPP | ||
|
||
#include "pyfiction/documentation.hpp" | ||
#include "pyfiction/types.hpp" | ||
|
||
#include <fiction/technology/sidb_nm_position.hpp> | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/stl.h> | ||
|
||
namespace pyfiction | ||
{ | ||
|
||
namespace detail | ||
{ | ||
|
||
template <typename Lyt> | ||
void sidb_nm_position(pybind11::module& m) | ||
{ | ||
using namespace pybind11::literals; | ||
|
||
m.def("sidb_nm_position", &fiction::sidb_nm_position<Lyt>, "sp"_a, "c"_a, DOC(fiction_sidb_nm_position)); | ||
} | ||
|
||
} // namespace detail | ||
|
||
inline void sidb_nm_position(pybind11::module& m) | ||
{ | ||
detail::sidb_nm_position<py_charge_distribution_surface>(m); | ||
} | ||
|
||
} // namespace pyfiction | ||
|
||
#endif // PYFICTION_SIDB_NM_POSITION_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ template <typename Lyt> | |
|
||
return std::make_pair(x, y); | ||
} | ||
|
||
} // namespace fiction | ||
|
||
#endif // FICTION_NM_POSITION_HPP |