VROOM-Project / pyvroom

Vehicle Routing Open-source Optimization Machine
BSD 2-Clause "Simplified" License
69 stars 14 forks source link

Allow for capacities to be determined post init. #55

Closed jonathf closed 2 years ago

jonathf commented 2 years ago

Instead of pre-declaring amount_capacity in init, allow it to be None, and instead verify it after it when the vehicles come in.

codecov[bot] commented 2 years ago

Codecov Report

Merging #55 (ba009da) into main (8c04882) will decrease coverage by 0.0%. The diff coverage is 69.2%.

@@           Coverage Diff           @@
##            main     #55     +/-   ##
=======================================
- Coverage   80.2%   80.1%   -0.1%     
=======================================
  Files         28      28             
  Lines       1304    1315     +11     
  Branches      17      17             
=======================================
+ Hits        1046    1054      +8     
- Misses       249     252      +3     
  Partials       9       9             
Flag Coverage Δ
binding 70.2% <ø> (ø)
python 91.7% <69.2%> (-0.4%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.