-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'antonio-origin/porkchop_and_hybrid_modu…
…les' into develop
- Loading branch information
Showing
48 changed files
with
1,507 additions
and
15 deletions.
There are no files selected for viewing
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
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro import <any> | ||
# | ||
# Without the statement below, importing the `astro` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro import * |
28 changes: 28 additions & 0 deletions
28
tudatpy/kernel_hybrid/astro/element_conversion/__init__.py
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,28 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.element_conversion` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/element_conversion`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.element_conversion` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.element_conversion import <any> | ||
# | ||
# Without the statement below, importing the `astro.element_conversion` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.element_conversion import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.element_conversion import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.frame_conversion` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/frame_conversion`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.frame_conversion` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.frame_conversion import <any> | ||
# | ||
# Without the statement below, importing the `astro.frame_conversion` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.frame_conversion import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.frame_conversion import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.fundamentals` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/fundamentals`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.fundamentals` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.fundamentals import <any> | ||
# | ||
# Without the statement below, importing the `astro.fundamentals` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.fundamentals import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.fundamentals import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.gravitation` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/gravitation`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.gravitation` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.gravitation import <any> | ||
# | ||
# Without the statement below, importing the `astro.gravitation` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.gravitation import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.gravitation import * |
32 changes: 32 additions & 0 deletions
32
tudatpy/kernel_hybrid/astro/polyhedron_utilities/__init__.py
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.polyhedron_utilities` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/polyhedron_utilities`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.polyhedron_utilities` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.polyhedron_utilities import <any> | ||
# | ||
# Without the statement below, importing the `astro.polyhedron_utilities` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.polyhedron_utilities import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.polyhedron_utilities import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.time_conversion` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/time_conversion`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.time_conversion` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.time_conversion import <any> | ||
# | ||
# Without the statement below, importing the `astro.time_conversion` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.time_conversion import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.time_conversion import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.astro.two_body_dynamics` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/astro/two_body_dynamics`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `astro.two_body_dynamics` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.astro.two_body_dynamics import <any> | ||
# | ||
# Without the statement below, importing the `astro.two_body_dynamics` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.astro.two_body_dynamics import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.astro.two_body_dynamics import * |
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,32 @@ | ||
# This file, by virtue of the import statement below, merges | ||
# the Tudat kernel module `tudatpy.kernel.constants` with | ||
# its Python extensions defined in `tudatpy/kernel_hybrid/constants`. | ||
# | ||
# This allows the import of all the C++ and Python submodules of the | ||
# `constants` kernel module directly from tudatpy: | ||
# | ||
# from tudatpy.constants import <any> | ||
# | ||
# Without the statement below, importing the `constants` kernel module | ||
# would only be possible as follows, and hybrid Python/C++ modules would not | ||
# be posible in tudatpy. | ||
# | ||
# from tudatpy.kernel.constants import <any> | ||
# | ||
# The reason why C++ kernel modules can only be imported as written above | ||
# is an issue with the `def_submodule` function of pybind11. The issue is discussed | ||
# [here](https://github.com/pybind/pybind11/issues/2639). | ||
# | ||
# We circumvent the issue by automatically creating an *empty* Python module for each | ||
# kernel module and submodule, and exposing the kernel module or submodule from the | ||
# Python module by adding the import statement below to the Python module's `__init__.py` (this file). | ||
# This workaround was proposed in [this comment](https://github.com/pybind/pybind11/issues/2639#issuecomment-721238757). | ||
# | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside the newly created Python | ||
# module (at the same level as this file), which is not possible with the `def_submodule` | ||
# function of pybind11. | ||
# An added benefit of this method is that it makes it possible to write Python extensions | ||
# and add them to the kernel modules simply by placing them inside this module! | ||
|
||
from tudatpy.kernel.constants import * |
Oops, something went wrong.