Skip to content
Snippets Groups Projects
Commit 81d38a3d authored by Andi Gerken's avatar Andi Gerken
Browse files

Updated deprecation warning version numbers

Fixed gen_docs.sh
parent d3f194f9
No related branches found
No related tags found
1 merge request!17Updated docs
Pipeline #38486 passed
cd "${0%/*}" cd "${0%/*}"
pdoc3 --html fish_models --force pdoc3 --html robofish.io --force
cp -r docs/img/ html/fish_models/ cp -r docs/img/ html/robofish/io
...@@ -151,8 +151,8 @@ class Entity(h5py.Group): ...@@ -151,8 +151,8 @@ class Entity(h5py.Group):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'poses_calc_ori_rad' is flawed and replaced it " details="We found that our calculation of 'poses_calc_ori_rad' is flawed and replaced it "
"Use the original poses ('poses_rad') with tracked orientations instead. " "Use the original poses ('poses_rad') with tracked orientations instead. "
"If you see this message and you don't know what to do, update all packages, " "If you see this message and you don't know what to do, update all packages, "
...@@ -172,8 +172,8 @@ class Entity(h5py.Group): ...@@ -172,8 +172,8 @@ class Entity(h5py.Group):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'poses_calc_ori' is flawed and replaced it " details="We found that our calculation of 'poses_calc_ori' is flawed and replaced it "
"Use the original poses ('poses') with tracked orientations instead. " "Use the original poses ('poses') with tracked orientations instead. "
"If you see this message and you don't know what to do, update all packages, " "If you see this message and you don't know what to do, update all packages, "
...@@ -206,8 +206,8 @@ class Entity(h5py.Group): ...@@ -206,8 +206,8 @@ class Entity(h5py.Group):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'speed_turn' is flawed and replaced it " details="We found that our calculation of 'speed_turn' is flawed and replaced it "
"with 'actions_speeds_turns'. The difference in calculation is, that the tracked " "with 'actions_speeds_turns'. The difference in calculation is, that the tracked "
"orientation is used now which gives the fish the ability to swim backwards. " "orientation is used now which gives the fish the ability to swim backwards. "
......
...@@ -424,8 +424,8 @@ class File(h5py.File): ...@@ -424,8 +424,8 @@ class File(h5py.File):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'poses_calc_ori' is flawed." details="We found that our calculation of 'poses_calc_ori' is flawed."
"Please replace it with 'poses' and use the tracked orientation." "Please replace it with 'poses' and use the tracked orientation."
"If you see this message and you don't know what to do, update all packages and if nothing helps, contact Andi.\n" "If you see this message and you don't know what to do, update all packages and if nothing helps, contact Andi.\n"
...@@ -436,8 +436,8 @@ class File(h5py.File): ...@@ -436,8 +436,8 @@ class File(h5py.File):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'poses_calc_ori_rad' is flawed." details="We found that our calculation of 'poses_calc_ori_rad' is flawed."
"Please replace it with 'poses_rad' and use the tracked orientation." "Please replace it with 'poses_rad' and use the tracked orientation."
"If you see this message and you don't know what to do, update all packages and if nothing helps, contact Andi.\n" "If you see this message and you don't know what to do, update all packages and if nothing helps, contact Andi.\n"
...@@ -450,8 +450,8 @@ class File(h5py.File): ...@@ -450,8 +450,8 @@ class File(h5py.File):
@property @property
@deprecation.deprecated( @deprecation.deprecated(
deprecated_in="1.2", deprecated_in="0.2",
removed_in="1.2.4", removed_in="0.2.4",
details="We found that our calculation of 'speed_turn' is flawed and replaced it " details="We found that our calculation of 'speed_turn' is flawed and replaced it "
"with 'actions_speeds_turns'. The difference in calculation is, that the tracked " "with 'actions_speeds_turns'. The difference in calculation is, that the tracked "
"orientation is used now which gives the fish the ability to swim backwards. " "orientation is used now which gives the fish the ability to swim backwards. "
......
...@@ -36,7 +36,8 @@ def test_entity_turns_speeds(): ...@@ -36,7 +36,8 @@ def test_entity_turns_speeds():
There were issues with the calculation of speeds and turns. The corresponding functions were set to be deprecated. There were issues with the calculation of speeds and turns. The corresponding functions were set to be deprecated.
This test was adapted to have plausible orientations which are used when the speeds and turns are calculated. This test was adapted to have plausible orientations which are used when the speeds and turns are calculated.
The reconstructed track is not identical to the original track. The reson for this is unknown. The reconstructed track is not identical to the original track. The reson for this is unknown.
TODO: Find the reason, why the reconstructed track differs
There is an open issue, to check this test again: https://git.imp.fu-berlin.de/bioroboticslab/robofish/io/-/issues/14
""" """
f = robofish.io.File(world_size_cm=[100, 100], frequency_hz=25) f = robofish.io.File(world_size_cm=[100, 100], frequency_hz=25)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment