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 custom vessel class via init method of VesselPerformanceModeller #261

Closed gecoombs closed 1 month ago

gecoombs commented 8 months ago

Currently the vessel performance modeller can only be initialised by specifying a vessel type in the config and calling the vessel factory to return the corresponding vessel class. We could also add the ability to supply a custom vessel class to the init method and have this override the call to the vessel factory. This would allow quick testing of a new vessel without needing to add it as part of the source code, for example in a notebook.