spitschan / SilentSubstitutionToolbox

Toolbox to simulate colorimetric observers for evaluation of photoreceptor isolation
Other
7 stars 5 forks source link

Bugfix: fractionConeBleachedFromIsom must be triplet #38

Closed JorisVincent closed 5 years ago

JorisVincent commented 5 years ago

GetHumanPhotoreceptorSS is not well setup to do uncommon numbers of receptors, e.g., 2 as for tritanopia. In particular, the bleached fraction must be passed to PTB as a triplet, but that's not enforced/guaranteed. By initializing fractionConeBleachedFromIsom as a triplet, this seems to be fixed.