For #30 . These changes should fix the Python errors found by @raghavprasad13.
[x] adds a requirements_examples.txt with the dependencies required only for examples (only matplotlib for now?)
[x] calls parent constructor to define the animal value, using "human" (not sure if the open loop example data is really from human, might have to update it; tested with mouse and the other animal value, same behaviour)
[x] raises errors when an issue was found, instead of progressing with the code execution; this is to prevent undefined values being accessed in the code, resulting in more errors
However, I've still got an error running the open examples script. Specifically, the JSON log file contains pupil and corner dimensions in pupil_dim and cr_dim respectivelly. But the code seems to expect pc and crc fields with these values.
There are also variables for width and height, but I couldn't find these values in the JSON log file. There are other values such as center of corner and of the pupil, and also the angles. I think the converter.py code might need updating to use these values instead?
For #30 . These changes should fix the Python errors found by @raghavprasad13.
requirements_examples.txt
with the dependencies required only for examples (onlymatplotlib
for now?)animal
value, using "human" (not sure if the open loop example data is really from human, might have to update it; tested with mouse and the other animal value, same behaviour)However, I've still got an error running the open examples script. Specifically, the JSON log file contains pupil and corner dimensions in
pupil_dim
andcr_dim
respectivelly. But the code seems to expectpc
andcrc
fields with these values.There are also variables for
width
andheight
, but I couldn't find these values in the JSON log file. There are other values such as center of corner and of the pupil, and also the angles. I think theconverter.py
code might need updating to use these values instead?Hope this helps, Bruno