Skip to content

Code for the assignments of the AE4868 course of the 2020/2021 academic year (Delft University of Technology)

License

Notifications You must be signed in to change notification settings

uni-courses/NumericalAstrodynamicsAssignments_2020

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student course template Numerical AstrodynamicsBuild Status

Hi, w.r.t. the original repository this repository is supplemented with:

  1. Python code and latex report integration. The following is done with a single command:
  • Plots are exported directly into your latex report.
  • Your python code is automatically included in the appendices of your report.
  • The example jupyter notebook is automatically executed.
  • The example jupyter notebook is automatically converted to pdf
  • The pdf of the example jupyter notebook is automatically integrated in the latex report.
  • The latex report is automatically compiled into a pdf.
  1. You can easily sync with overleaf, e.g. if you do a last minute run, you just push and pull into overleaf, instead of manually uploading pictures.
  2. Example unit tests are written that test both the python code, as well as the code inside the Jupyter notebooks.
  3. All unit tests can be ran with a single command.
  4. The continuous integration with Travis-CI runs all the unit tests in this repository automatically for every push towards this repository ('s master branch). If all tests are passed, the above badge is green and says "passed".

Room for improvement

  1. The code (that I wrote) could be documented more clearly, with proper comment formatting.
  2. The code that (executes and) converts the jupyter notebooks to pdf could loop through all notebooks in the respective /src/folder automatically in a try catch block to automatically skip new notebooks that do not yet compile. This would prevent the user from having to specify which notebooks should be compiled.

Usage: do once

  1. If you don't have pip: open Anaconda prompt and browse to the directory of this readme:
cd /home/<your path to the repository folder>/
  1. To use this package, first make a new conda environment (it this automatically installs everything you need).
conda env create --file tudat-space_environment.yml

Usage: do every time you start Anaconda:

  1. Activate the conda environment you created:
conda activate tudat-space

Usage: do every run:

  1. Performe a run for assignment 1 (named project1) of main code (in main.py, called from __main__.py)
python -m code.project1.src

Testing

  1. Testing is as simple as running the following command in the root directory of this repository in Anaconda prompt:
python -m pytest

from the root directory of this project.

Documentation

The docstring documentation (template) was generated using pyment. The HTML documentation of the code was generated using pdoc.

About

Code for the assignments of the AE4868 course of the 2020/2021 academic year (Delft University of Technology)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 88.3%
  • HTML 8.3%
  • Python 2.5%
  • TeX 0.9%