Skip to content

Commit

Permalink
Merge pull request #3 from open-space-collective/dev@lucas
Browse files Browse the repository at this point in the history
Dev@lucas
  • Loading branch information
lucas-bremond authored Sep 20, 2018
2 parents 5c01d37 + a4071d4 commit 3340558
Show file tree
Hide file tree
Showing 112 changed files with 81,194 additions and 20,464 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.bsp filter=lfs diff=lfs merge=lfs -text
*.dat filter=lfs diff=lfs merge=lfs -text
*.tf filter=lfs diff=lfs merge=lfs -text
*.bpc filter=lfs diff=lfs merge=lfs -text
*.tls filter=lfs diff=lfs merge=lfs -text
*.pc filter=lfs diff=lfs merge=lfs -text
*.tpc filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
## Visual Studio Code

.vscode/
*.code-workspace

## Sublime Text

Expand Down
37 changes: 4 additions & 33 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ SET (PROJECT_VENDOR_URL "open-space-collective.org")

OPTION (BUILD_SHARED_LIBRARY "Build shared library." ON)
OPTION (BUILD_STATIC_LIBRARY "Build static library." OFF)
OPTION (BUILD_UTILITY "Build utility." OFF)
OPTION (BUILD_UNIT_TESTS "Build tests" ON)
OPTION (BUILD_PYTHON_BINDINGS "Build Python bindings." ON)
OPTION (BUILD_CODE_COVERAGE "Build code coverage" OFF)
Expand Down Expand Up @@ -274,15 +273,15 @@ ELSE ()
MESSAGE (SEND_ERROR "[NLopt] not found.")
ENDIF ()

### Library :: Core [master]
### Library Core [master]

FIND_PACKAGE ("LibraryCore" "0.1" REQUIRED)

### Library :: Mathematics [master]
### Library Mathematics [master]

FIND_PACKAGE ("LibraryMathematics" "0.1" REQUIRED)

### Library :: Physics [master]
### Library Physics [master]

FIND_PACKAGE ("LibraryPhysics" "0.1" REQUIRED)

Expand Down Expand Up @@ -365,34 +364,6 @@ IF (BUILD_STATIC_LIBRARY)

ENDIF ()

### Utility

IF (BUILD_UTILITY)

# ADD_SUBDIRECTORY ("${PROJECT_SOURCE_DIR}/share/CppUtility")

SET (UTILITY_NAME "${PROJECT_PACKAGE_NAME}")
SET (UTILITY_TARGET "${UTILITY_NAME}.exe")

FILE (GLOB_RECURSE UTILITY_HEADERS "${PROJECT_SOURCE_DIR}/include/${PROJECT_PATH}/*.hpp")
FILE (GLOB_RECURSE UTILITY_SRCS "${PROJECT_SOURCE_DIR}/share/util/*.cxx")

ADD_EXECUTABLE (${UTILITY_TARGET} ${UTILITY_SRCS})

TARGET_INCLUDE_DIRECTORIES (${UTILITY_TARGET} PUBLIC "${PROJECT_SOURCE_DIR}/include/")

TARGET_LINK_LIBRARIES (${UTILITY_TARGET} "pthread")
TARGET_LINK_LIBRARIES (${UTILITY_TARGET} ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES (${UTILITY_TARGET} ${SHARED_LIBRARY_TARGET})

SET_TARGET_PROPERTIES (${UTILITY_TARGET} PROPERTIES VERSION ${PROJECT_VERSION_STRING} OUTPUT_NAME ${SHARED_LIBRARY_NAME} CLEAN_DIRECT_OUTPUT 1 INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN/")

INSTALL (DIRECTORY "${PROJECT_SOURCE_DIR}/include/${PROJECT_PATH}/" DESTINATION ${INSTALL_INCLUDE} COMPONENT "headers" FILES_MATCHING PATTERN "*.hpp")
INSTALL (DIRECTORY "${PROJECT_SOURCE_DIR}/src/${PROJECT_PATH}/" DESTINATION ${INSTALL_INCLUDE} COMPONENT "headers" FILES_MATCHING PATTERN "*.tpp")
INSTALL (TARGETS ${SHARED_LIBRARY_TARGET} DESTINATION ${INSTALL_LIB} COMPONENT "libraries")

ENDIF ()

### Unit Tests

IF (BUILD_UNIT_TESTS)
Expand Down Expand Up @@ -462,7 +433,7 @@ ENDIF ()

IF (BUILD_PYTHON_BINDINGS)

ADD_SUBDIRECTORY ("${PROJECT_SOURCE_DIR}/share/python")
ADD_SUBDIRECTORY ("${PROJECT_SOURCE_DIR}/bindings/python")

ENDIF ()

Expand Down
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Library :: Astrodynamics
========================
Library Astrodynamics
=======================

Orbit, attitude, access.

[![Build Status](https://travis-ci.com/open-space-collective/library-astrodynamics.svg?branch=master)](https://travis-ci.com/open-space-collective/library-astrodynamics)
[![Code Coverage](https://codecov.io/gh/open-space-collective/library-astrodynamics/branch/master/graph/badge.svg)](https://codecov.io/gh/open-space-collective/library-astrodynamics)
[![Documentation](https://img.shields.io/readthedocs/pip/stable.svg)](https://open-space-collective.github.io/library-astrodynamics)
[![GitHub version](https://badge.fury.io/gh/open-space-collective%2Flibrary-astrodynamics.svg)](https://badge.fury.io/gh/open-space-collective%2Flibrary-astrodynamics)
[![PyPI version](https://badge.fury.io/py/LibraryAstrodynamicsPy.svg)](https://badge.fury.io/py/LibraryAstrodynamicsPy)

## Warning

Expand Down Expand Up @@ -35,13 +37,26 @@ The **Astrodynamics** library exhibits the following structure:
│ │ ├── Pass
│ │ └── Utilities
│ └── Composite
├── Flight
│ └── Profile
│ └── State
├── Access
└── State Profile
```

## Documentation

The documentation can be found [here](https://open-space-collective.github.io/library-astrodynamics).
The documentation can be found here:

- [C++](https://open-space-collective.github.io/library-astrodynamics)
- [Python](./bindings/python/docs)

## Tutorials

Various tutorials are available here:

- [C++](./tutorials/cpp)
- [Python](./tutorials/python)

## Setup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ ADD_DEPENDENCIES (${PACKAGE_TARGET} ${LIBRARY_TARGET})

################################################################################################################################################################

ADD_CUSTOM_TARGET ("publish" COMMAND python3 -m twine upload --repository-url https://test.pypi.org/legacy/ "${CMAKE_CURRENT_BINARY_DIR}/dist/*" DEPENDS ${OUTPUT})
ADD_CUSTOM_TARGET ("publish" COMMAND python3 -m twine upload "${CMAKE_CURRENT_BINARY_DIR}/dist/*" DEPENDS ${OUTPUT})

################################################################################################################################################################
12 changes: 12 additions & 0 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Library ▸ Astrodynamics ▸ Python Bindings
=========================================

Orbit, attitude, access.

[![Build Status](https://travis-ci.com/open-space-collective/library-astrodynamics.svg?branch=master)](https://travis-ci.com/open-space-collective/library-astrodynamics)
[![Code Coverage](https://codecov.io/gh/open-space-collective/library-astrodynamics/branch/master/graph/badge.svg)](https://codecov.io/gh/open-space-collective/library-astrodynamics)
[![Documentation](https://img.shields.io/readthedocs/pip/stable.svg)](https://open-space-collective.github.io/library-astrodynamics)
[![GitHub version](https://badge.fury.io/gh/open-space-collective%2Flibrary-astrodynamics.svg)](https://badge.fury.io/gh/open-space-collective%2Flibrary-astrodynamics)
[![PyPI version](https://badge.fury.io/py/LibraryAstrodynamicsPy.svg)](https://badge.fury.io/py/LibraryAstrodynamicsPy)

[Library ▸ Astrodynamics](https://github.com/open-space-collective/library-astrodynamics)
46 changes: 46 additions & 0 deletions bindings/python/docs/Reference.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Library ▸ Astrodynamics"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[Astrodynamics ▸ Trajectory](./Reference/Trajectory.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[Astrodynamics ▸ Access](./Reference/Access.ipynb)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit 3340558

Please sign in to comment.