antarctica / PolarRoute

Long-distance maritime polar route planning, taking into account complex changing environmental conditions.
https://antarctica.github.io/PolarRoute/
MIT License
17 stars 3 forks source link

Add option for custom vessel performance classes #306

Closed gecoombs closed 1 month ago

gecoombs commented 1 month ago

PolarRoute Pull Request

Date: 18/10/24
Version Number: 1.1.1

Description of change

Adds the option to specify a custom vessel class when initialising the vessel performance modeller (bypassing the vessel factory) to make prototyping new models simpler. Also fixes a couple of small bugs with existing vessel models (alr/plane).

Fixes #261

Testing

Test results: vessel_tests_181024.txt

Files changed:

polar_route/__init__.py
polar_route/vessel_performance/vessel_performance_modeller.py
polar_route/vessel_performance/vessels/abstract_alr.py
polar_route/vessel_performance/vessels/abstract_glider.py
polar_route/vessel_performance/vessels/abstract_plane.py
polar_route/vessel_performance/vessels/abstract_ship.py
polar_route/vessel_performance/vessels/abstract_uav.py
polar_route/vessel_performance/vessels/example_ship.py

Checklist