Skip to content

Commit

Permalink
Merge pull request #213 from tudat-team/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
DominicDirkx authored Jan 28, 2025
2 parents 4e3b3df + fe82627 commit 6bbbe0a
Show file tree
Hide file tree
Showing 324 changed files with 84,674 additions and 26,580 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.8.0
current_version = 0.8.0.dev66
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/pylint.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Generated files
examples
lib/
libs/
CMakeFiles/
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "examples"]
path = examples
url = https://github.com/tudat-team/tudatpy-examples
url = https://github.com/tudat-team/tudatpy-examples.git
15 changes: 15 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"
jobs:
pre_install:
- LATEST_TAG=$(git describe --tags --abbrev=0) ; echo Downloading $LATEST_TAG ;
wget https://github.com/tudat-team/tudatpy/archive/refs/tags/$LATEST_TAG.zip; unzip $LATEST_TAG.zip; rm -rf docs/; LT=$(echo $LATEST_TAG | cut -c 2-); mv tudatpy-$LT/docs/ .

# The pre-install step enables building the docs on the latest tag
# instead of the latest commit. Since Read the Docs uses the latest
# tudatpy dev conda package to find the binaries (see docs/source/conf.
# py) and extract docs form them, it must use the corresponding source
# code to build the docs to avoid any inconsistencies. The pre-install
# step overrides the default behavior of Read the Docs to build the docs
# on the latest commit. The pre-install step replaces the docs/
# directory with the docs/ directory of the latest tag.

conda:
environment: docs/environment_readthedocs.yaml


32 changes: 29 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ else()
# add_definitions(-DVERSION_INFO "${tudatpy_VERSION_LABEL}")
endif()

include_directories(include)
option(TUDAT_BUILD_WITH_FFTW3 "Build Tudat with FFTW3." OFF)

include_directories("tudatpy/kernel")
# Add cmake modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
Expand Down Expand Up @@ -50,8 +52,9 @@ if (MSVC)
# https://docs.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file?view=vs-2019
# This is equivalent to the big-obj for MinGW, this should stop error C1128.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
endif ()

message(STATUS "<< ${PROJECT_NAME} (${CMAKE_BUILD_TYPE} - ${BUILD_STYLE}) >>")

set(Boost_USE_STATIC_LIBS OFF)
Expand All @@ -74,7 +77,6 @@ include_directories(SYSTEM AFTER "${EIGEN3_INCLUDE_DIR}")

# TODO: Make Tudat export definitions to the config for inheritence to this project.
add_definitions(-DTUDAT_BUILD_WITH_SPICE_INTERFACE=1)
add_definitions(-DTUDAT_BUILD_WITH_ESTIMATION_TOOLS=1)

#if (DEFINED _GLIBCXX_USE_CXX11_ABI)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=${_GLIBCXX_USE_CXX11_ABI}")
Expand Down Expand Up @@ -116,6 +118,30 @@ find_package(NRLMSISE00 0.1 REQUIRED)
# set(NRLMSISE00_INCLUDE_DIRS ${NRLMSISE00_BUILD_INCLUDE_DIRS})
#endif ()


if (TUDAT_BUILD_WITH_FFTW3)
if(NOT APPLE)
find_package(FFTW3)
message(STATUS "FFTW " ${FFTW3_LIBRARIES})
include_directories(SYSTEM AFTER "${FFTW3_INCLUDE_DIRS}")
if(WIN32)
set (FFTW3_LIBRARIES "${FFTW3_LIBRARY_DIRS}/fftw3.lib")
else()
set (FFTW3_LIBRARIES "${FFTW3_LIBRARY_DIRS}/libfftw3.so")
endif()
add_definitions(-DTUDAT_BUILD_WITH_FFTW3=1)
else( )
find_package(FFTW3)
message(STATUS ${FFTW3_LIBRARIES})
include_directories(SYSTEM AFTER "${FFTW3_INCLUDE_DIRS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem \"${FFTW3_INCLUDE_DIR}\"")
set (FFTW3_LIBRARIES "${FFTW3_LIBRARY_DIRS}/libfftw3.dylib")
add_definitions(-DTUDAT_BUILD_WITH_FFTW3=1)
endif( )
else( )
add_definitions(-DTUDAT_BUILD_WITH_FFTW3=0)
endif( )

# Sofa dependency if in build settings.
if (${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
find_package(Tudat REQUIRED)
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

# tudatpy

TU Delft Astrodynamics Toolbox in Python, or **tudatpy**, is a library that exposes the powerful set of C++
libraries, [Tudat](https://github.com/tudat-team/tudat), and adds a limited set of Python-only functionality.
TU Delft Astrodynamics Toolbox in Python, or **tudatpy**, is a library that primarily exposes the powerful set of C++
libraries, [Tudat](https://tudat.tudelft.nl/). TudatPy aims at accelerating the implementation of Tudat simulations,
providing an interface between Tudat and popular machine learning frameworks and establishing a platform to provide
quality education in the field of astrodynamics. See the [documentation](https://tudat-space.readthedocs.io) for more.

Installation
===================
=======
* For more details, we refer to the [project website](https://docs.tudat.space/en/latest/) and our [project Github page](https://github.com/tudat-team)
* For developers, this repository is best built as part of the [tudat-bundle](https://github.com/tudat-team/tudat-bundle)
* Conda package for this repository are available on [anaconda](anaconda.org/tudat-team/tudatpy/), which is built through the [tudat-feedstock](https://github.com/tudat-team/tudatpy-feedstock) on [Azure](https://dev.azure.com/tudat-team/feedstock-builds/_build?definitionId=3)


* Conda package for this repository are available on [anaconda](anaconda.org/tudat-team/tudatpy/), which is built through the [tudat-feedstock](https://github.com/tudat-team/tudatpy-feedstock) on [Azure](https://dev.azure.com/tudat-team/feedstock-builds/_build?definitionId=3)
File renamed without changes.
36 changes: 0 additions & 36 deletions dev/step-sim.py

This file was deleted.

24 changes: 0 additions & 24 deletions docs/build.sh

This file was deleted.

39 changes: 0 additions & 39 deletions docs/environment.yaml

This file was deleted.

8 changes: 3 additions & 5 deletions docs/environment_readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: tudatpy-docs-readthedocs
channels:
- conda-forge
- tudat-team/label/dev
- tudat-team
dependencies:
# All standard tudat-bundle deps are needed for sphinx-documentation for tudatpy.
- python=3.8
- numpy
- matplotlib # for tudat.plotting
# Skipping listing tudat and boost-cpp here because they will be installed as part of tudatpy installation
- basemap # for tudat.plotting
- basemap-data-hires # for tudat.plotting
# Other doc related
- jinja2
- yaml
#- cmake
- pydantic=1.10.9
- numpydoc
- tudatpy
Expand All @@ -24,4 +22,4 @@ dependencies:
- sphinxcontrib-fulltoc
- sphinxcontrib-bibtex
- furo
- sphinx_copybutton
- sphinx_copybutton
21 changes: 0 additions & 21 deletions docs/multidoc/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/multidoc/cli.py

This file was deleted.

8 changes: 0 additions & 8 deletions docs/multidoc/config.py

This file was deleted.

69 changes: 0 additions & 69 deletions docs/multidoc/error.py

This file was deleted.

Loading

0 comments on commit 6bbbe0a

Please sign in to comment.