davidrmiller / biosim4

Biological evolution simulator
Other
3.1k stars 435 forks source link

getSignalDensityAlongAxis() uses wrong coordinates when calling getMagnitude() #84

Closed osechet closed 1 year ago

osechet commented 1 year ago

In getSignalDensityAlongAxis(): https://github.com/davidrmiller/biosim4/blob/ee9505a281b0341fd4aacacb29592138a52b5f52/src/getSensor.cpp#L132

The coordinates passed to the getMagnitude() function should be tloc, not loc.

davidrmiller commented 1 year ago

Thanks for reporting this. I'll verify then update the code. Good catch!