Skip to content

Commit

Permalink
#43 Working on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarnepedersen committed Jan 16, 2025
1 parent 3ea2a0a commit 7aa6f9f
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 15 deletions.
13 changes: 13 additions & 0 deletions docs/source/_autosummary/trafficgen.check_land_crossing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
trafficgen.check\_land\_crossing
================================

.. automodule:: trafficgen.check_land_crossing
:members:



.. rubric:: Functions
.. autosummary::

path_crosses_land

26 changes: 26 additions & 0 deletions docs/source/_autosummary/trafficgen.encounter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
trafficgen.encounter
====================

.. automodule:: trafficgen.encounter
:members:



.. rubric:: Functions
.. autosummary::

assign_beta
assign_beta_from_list
assign_future_position_to_target_ship
assign_sog_to_target_ship
assign_vector_time
calculate_min_vector_length_target_ship
calculate_relative_bearing
calculate_ship_cog
check_encounter_evolvement
decide_target_ship
define_own_ship
determine_colreg
find_start_position_target_ship
generate_encounter

15 changes: 15 additions & 0 deletions docs/source/_autosummary/trafficgen.marine_system_simulator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trafficgen.marine\_system\_simulator
====================================

.. automodule:: trafficgen.marine_system_simulator
:members:



.. rubric:: Functions
.. autosummary::

flat2llh
llh2flat
ssa

19 changes: 19 additions & 0 deletions docs/source/_autosummary/trafficgen.plot_traffic_situation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
trafficgen.plot\_traffic\_situation
===================================

.. automodule:: trafficgen.plot_traffic_situation
:members:



.. rubric:: Functions
.. autosummary::

add_ship_to_map
add_ship_to_plot
calculate_ship_outline
calculate_vector_arrow
find_max_value_for_plot
plot_specific_traffic_situation
plot_traffic_situations

26 changes: 26 additions & 0 deletions docs/source/_autosummary/trafficgen.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
trafficgen.utils
================

.. automodule:: trafficgen.utils
:members:



.. rubric:: Functions
.. autosummary::

calculate_bearing_between_waypoints
calculate_destination_along_track
calculate_distance
calculate_position_along_track_using_waypoints
calculate_position_at_certain_time
convert_angle_0_to_2_pi_to_minus_pi_to_pi
convert_angle_minus_pi_to_pi_to_0_to_2_pi
deg_2_rad
knot_2_m_pr_s
m_2_nm
m_pr_s_2_knot
min_2_s
nm_2_m
rad_2_deg

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trafficgen.write\_traffic\_situation\_to\_file
==============================================

.. automodule:: trafficgen.write_traffic_situation_to_file
:members:



.. rubric:: Functions
.. autosummary::

convert_ship_data_from_si_units_to_maritime
convert_situation_data_from_si_units_to__maritime
write_traffic_situations_to_json_file

4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"sphinx.ext.autosummary",
"sphinx.ext.todo",
"sphinxcontrib.mermaid",
"sphinx_click"
"sphinx_click",
]

# Extenstion for myst_parser
Expand Down Expand Up @@ -70,7 +70,7 @@
html_title = f"trafficgen {release}"
html_theme = "furo"
html_static_path = ["_static"]
html_logo = "_static/DNV_logo.png"
html_logo = "_static/DNV_logo_RGB.jpg"
autodoc_default_options = {
"member-order": "groupwise",
"undoc-members": True,
Expand Down
7 changes: 4 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Trafficgen Documentation
========================
Ship Traffic Generator Documentation
====================================

.. toctree::
:maxdepth: 4
:caption: Contents:

README
usage
input_files
api
CHANGELOG
STYLEGUIDE
Expand All @@ -22,4 +24,3 @@ Indices and tables

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
16 changes: 6 additions & 10 deletions docs/source/trafficgen.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
trafficgen package
==================

Subpackages
-----------

.. autosummary::
:toctree: _autosummary
:template: custom-module.rst
:recursive:



Modules
-------

Expand All @@ -21,3 +11,9 @@ Modules

trafficgen.ship_traffic_generator
trafficgen.read_files
trafficgen.encounter
trafficgen.check_land_crossing
trafficgen.marine_system_simulator
trafficgen.plot_traffic_situation
trafficgen.write_traffic_situation_to_file
trafficgen.utils

0 comments on commit 7aa6f9f

Please sign in to comment.