Skip to content

fix (routeparams): fix __eq__ to use ship params - #222

Open
amansingh1207 wants to merge 1 commit into
52North:mainfrom
amansingh1207:fix/221-routeparams-eq
Open

amansingh1207 wants to merge 1 commit into
52North:mainfrom
amansingh1207:fix/221-routeparams-eq

Conversation

@amansingh1207

Copy link
Copy Markdown

Related Issue:

Fixes Issue #221

Changes:

  • Modified WeatherRoutingTool/routeparams.py __eq__
  • Modified tests/test_routeparams.py add test_routeparams_eq

Further Details:

Summary:

Before: a==b raised AttributeError: fuel. After: compares ship_params_per_step.fuel_rate/rpm, returns True.

Dependencies:

None

PR Checklist:

  • CLA done
  • unit tests pass (4 passed)
  • flake8 clean
  • follow guidelines

RouteParams has no fuel/rpm attributes, use ship_params_per_step.fuel_rate/rpm for comparison.

Closes 52North#221

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant