Skip to content

Commit dea3043

Browse files
committed
Finalise the documentation
1 parent 3755f29 commit dea3043

43 files changed

Lines changed: 314 additions & 3470 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
11
# InsectVision
2+
23
Computer Vision Toolbox for Insect Vision
4+
5+
## Version 1.0.1
6+
7+
This version has been created as support for the article:
8+
9+
Gkanias E., Risse B., Mangan M., and Webb B. (2019) From skylight input to behavioural
10+
output: a computational model of the insect polarised light compass. PLOS Computational
11+
Biology.
12+
13+
### Requirements
14+
15+
To be able to run all the experiments and replicate the results presented in the article,
16+
the [compmodels](https://github.com/evgkanias/compmodels) package is needed. If you
17+
don't have access to this package, please contact the authors.
18+
19+
Clone both repositories and set the **compmodels** as a dependence to the
20+
**insectvision** package.
21+
22+
### Observe the plots presented in the article
23+
24+
To see the results, it is not necessary to run the code. By simply opening the
25+
[notebooks/plos.ipynb](https://github.com/InsectRobotics/insectvision/blob/plos-submit/notebooks/plos.ipynb)
26+
file, the plots should be automatically generated for you to observe them.
27+
28+
29+
### Replicate the results from the article
30+
31+
To create the plots by yourself, you need to start a **Jupyter notebook** kernel at
32+
the root of the package. Then run the [notebooks/plos.ipynb](https://github.com/InsectRobotics/insectvision/blob/plos-submit/notebooks/plos.ipynb)
33+
file, which already contains all the plots and the respective code to replicate them.
34+
Some plots (especially the ones related to the global optimisation) may need a long
35+
time to run; this does not mean that they do not work.
36+
37+
### Author
38+
39+
All the code has been implemented by [Evripidis Gkanias](http://homepages.inf.ed.ac.uk/s1514920/).
40+
41+
### Copyright
42+
43+
Copyright © 2019, Insect Robotics Group, Institude of Perception, Action and Behaviour, School of Informatics, the University of Edinburgh

code/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
#!/usr/bin/env python
2+
3+
__author__ = "Evripidis Gkanias"
4+
__copyright__ = "Copyright (c) 2019, Insect Robotics Group," \
5+
"Institude of Perception, Action and Behaviour," \
6+
"School of Informatics, the University of Edinburgh"
7+
__credits__ = ["Evripidis Gkanias"]
8+
__license__ = "MIT"
9+
__version__ = "1.0.1"
10+
__maintainer__ = "Evripidis Gkanias"
11+
12+
113
from .compass import encode_sph, decode_sph, decode_xy

code/compass.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#!/usr/bin/env python
2+
3+
__author__ = "Evripidis Gkanias"
4+
__copyright__ = "Copyright (c) 2019, Insect Robotics Group," \
5+
"Institude of Perception, Action and Behaviour," \
6+
"School of Informatics, the University of Edinburgh"
7+
__credits__ = ["Evripidis Gkanias"]
8+
__license__ = "MIT"
9+
__version__ = "1.0.1"
10+
__maintainer__ = "Evripidis Gkanias"
11+
12+
113
import numpy as np
214
from numbers import Number
315

compoundeye/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
from .beeeye import load_both_eyes as bee_eyes
1+
#!/usr/bin/env python
2+
3+
__author__ = "Evripidis Gkanias"
4+
__copyright__ = "Copyright (c) 2019, Insect Robotics Group," \
5+
"Institude of Perception, Action and Behaviour," \
6+
"School of Informatics, the University of Edinburgh"
7+
__credits__ = ["Evripidis Gkanias"]
8+
__license__ = "MIT"
9+
__version__ = "1.0.1"
10+
__maintainer__ = "Evripidis Gkanias"
11+
12+
213
from .geometry import angles_distribution, fibonacci_sphere
314
from .model import CompoundEye, DRA
4-
from .bumblebee import BumbleBeeEye
5-
from .anteye import AntEye
615
from .sensor import POLCompassDRA
7-
from .utils import get_microvilli_angle, RNG

compoundeye/anteye.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

compoundeye/beeeye.py

Lines changed: 0 additions & 224 deletions
This file was deleted.

compoundeye/bumblebee.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

compoundeye/evaluation.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#!/usr/bin/env python
2+
3+
__author__ = "Evripidis Gkanias"
4+
__copyright__ = "Copyright (c) 2019, Insect Robotics Group," \
5+
"Institude of Perception, Action and Behaviour," \
6+
"School of Informatics, the University of Edinburgh"
7+
__credits__ = ["Evripidis Gkanias"]
8+
__license__ = "MIT"
9+
__version__ = "1.0.1"
10+
__maintainer__ = "Evripidis Gkanias"
11+
12+
113
from compoundeye.geometry import angles_distribution, fibonacci_sphere
214
from sphere.transform import tilt
315
from environment import Sky, eps, spectrum_influence, spectrum

0 commit comments

Comments
 (0)