Skip to content

Commit

Permalink
docs: Fixed installation and core page indexing (#112)
Browse files Browse the repository at this point in the history
* docs: Fixed docstring of Engine

* docs: Fixed installation page indexing
  • Loading branch information
frgfm committed Aug 6, 2022
1 parent 22c5981 commit 3174db7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"source_repository": "https://github.com/pyronear/pyro-engine/",
"source_branch": "develop",
"source_directory": "docs/source/",
"sidebar_hide_name": True,
}


Expand Down
5 changes: 2 additions & 3 deletions docs/source/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ The models subpackage contains everything to manage the whole Fire Detection pro
by predicting whether there is a fire on this image


.. currentmodule:: pyroengine.core
.. currentmodule:: pyroengine

Engine
------

.. autoclass:: Engine

.. automethod:: clear_cache
.. automethod:: predict
.. automethod:: heartbeat
File renamed without changes.
6 changes: 3 additions & 3 deletions pyroengine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class Engine:
Examples:
>>> from pyroengine import Engine
>>> cam_creds ={
"cam_id_1": {'login':'log1', 'password':'pwd1'},
"cam_id_2": {'login':'log2', 'password':'pwd2'},
}
>>> "cam_id_1": {'login':'log1', 'password':'pwd1'},
>>> "cam_id_2": {'login':'log2', 'password':'pwd2'},
>>> }
>>> pyroEngine = Engine("pyronear/rexnet1_3x", 0.5, 'https://api.pyronear.org', cam_creds, 48.88, 2.38)
"""

Expand Down

0 comments on commit 3174db7

Please sign in to comment.