NetLogo / NW-Extension

This is the NetLogo Network Extension. For general information about NetLogo, see:
http://ccl.northwestern.edu/netlogo/
Other
62 stars 25 forks source link

WeightedPathTo is supposed to return NumberType | BooleanType #163

Closed JZschache closed 8 years ago

JZschache commented 8 years ago

I came across a small bug: NetLogo expects nw:weighted-path-to to return a number or a boolean instead of a list: https://github.com/NetLogo/NW-Extension/blob/master/src/main/org/nlogo/extensions/nw/prim/Paths.scala#L110

This impedes the usage of map [?] (nw:weighted-path-to myself "x")

Thank your for the nw-extension!

nicolaspayette commented 8 years ago

Thanks for catching this, @JZschache ! It should be fixed in the forthcoming NetLogo release.