We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psf_utils.fake_generatePupil
It seems that dead segments are not calculated correctly. Instead of setting exactly N=deadSegments elements to refl=0, this
N=deadSegments
refl=0
refl[(rng.random(deadSegments)*nseg).astype(int)] is just a very convoluted way of saying
refl[(rng.random(deadSegments)*nseg).astype(int)]
refl[rng.integers(0,nseg,deadSegments)]
but allows for a an alive segment to be killed multiple times. What about
refl[rng.choice(range(nseg), deadSegments)]?
refl[rng.choice(range(nseg), deadSegments)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems that dead segments are not calculated correctly. Instead of setting exactly
N=deadSegments
elements torefl=0
, thisrefl[(rng.random(deadSegments)*nseg).astype(int)]
is just a very convoluted way of saying
refl[rng.integers(0,nseg,deadSegments)]
but allows for a an alive segment to be killed multiple times. What about
refl[rng.choice(range(nseg), deadSegments)]
?The text was updated successfully, but these errors were encountered: