antarctica / PolarRoute

Long-distance maritime polar route planning, taking into account complex changing environmental conditions.
MIT License
15 stars 3 forks source link

Add custom vessel class via init method of VesselPerformanceModeller #261

Open gecoombs opened 4 months ago

gecoombs commented 4 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.