Skip to content

Commit

Permalink
Merge pull request #106 from yupidevs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jmorgadov authored Oct 9, 2022
2 parents 34eec5b + df41c40 commit 5d38bd6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
author = "Gustavo Viera-López, Alfredo Reyes, Jorge Morgado, Ernesto Altshuler"

# The full version, including alpha/beta/rc tags
release = "0.11.0"
release = "0.11.1"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "yupi"
version = "0.11.0"
version = "0.11.1"
description = "A package for tracking and analysing objects trajectories"
authors = [
"Gustavo Viera-López <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion tests/test_stats/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def test_turning_angles(traj):


def test_speed_ensemble(traj1):
print(traj1.v)
se = speed_ensemble([traj1, traj1])
assert se == pytest.approx([4, 1.5, 3, 3, 4, 1.5, 3, 3], APPROX_REL_TOLERANCE)

Expand Down
2 changes: 1 addition & 1 deletion yupi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"WindowType",
]

__version__ = "0.11.0"
__version__ = "0.11.1"
1 change: 0 additions & 1 deletion yupi/_differentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ def estimate_accelereation(
if method == DiffMethod.LINEAR_DIFF:
diff = _linear_diff(traj.r, traj.t, window_type)
diff = _linear_diff(diff, traj.t, window_type)
print(diff)
return diff
if method == DiffMethod.FORNBERG_DIFF:
if window_type == WindowType.FORWARD:
Expand Down
2 changes: 1 addition & 1 deletion yupi/core/serializers/csv_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def save(
)
accuracy = Trajectory.general_diff_est.get("accuracy", 1)
method = traj.diff_est.get("method", diff_method).value
window = traj.diff_est.get("window", diff_win).value
window = traj.diff_est.get("window_type", diff_win).value
accuracy = traj.diff_est.get("accuracy", accuracy)

writer.writerow([traj.traj_id, dt, traj.dim])
Expand Down
9 changes: 6 additions & 3 deletions yupi/core/serializers/json_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ def save(
file_name, overwrite=overwrite, extension=".json"
)

method = Trajectory.general_diff_est.get("method", diff.DiffMethod.LINEAR_DIFF)
window = Trajectory.general_diff_est.get("window_type", diff.WindowType.CENTRAL)
accuracy = Trajectory.general_diff_est.get("accuracy", 1)
diff_est = {
"method": traj.diff_est.get("method", diff.DiffMethod.LINEAR_DIFF).value,
"window_type": traj.diff_est.get("window", diff.WindowType.CENTRAL).value,
"accuracy": traj.diff_est.get("accuracy", 1),
"method": traj.diff_est.get("method", method).value,
"window_type": traj.diff_est.get("window_type", window).value,
"accuracy": traj.diff_est.get("accuracy", accuracy),
}

json_dict = {
Expand Down

0 comments on commit 5d38bd6

Please sign in to comment.