-
Notifications
You must be signed in to change notification settings - Fork 13
setUpRandom #113
New issue
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
setUpRandom #113
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #113 +/- ##
==========================================
- Coverage 26.10% 25.42% -0.68%
==========================================
Files 43 44 +1
Lines 636 653 +17
==========================================
Hits 166 166
- Misses 470 487 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Oh nice. I had gone the lazy way in this PR #105 and was reusing Sam Schwartzkopf implementation. As the file is lost in the middle of this PR that covers almost" all but the kitchen sink", you can see the file itself on one of my branch here. See maybe if there is anything you can take from there. You function looks better refactored but I think Sam's covers VERY old matlab cases too. |
|
uh nice as well yours, I missed that otherwise I would have took in account, let me then mix them up. Though, true that it covers also older matlab versions but it contradicts a bit what we check in our Question is, how old should be your matlab to use the old rand seeders + that old version is ok with the rest of the CPP_PTB/BIDS repo. |
|
I think that having functions that support older matlab / octave is not a bad idea for something like this small function (that could be reused by others). I think that to make our life easier we say that we will not "support" versions older than X is more for things where we would have to modify a whole bunch of function of with some Does that make sense? |
|
@marcobarilari we did not add the call to setUpRand in initPTB, right? |
|
yes we did not, doing now |
not many info online for a best practice, anyway I think that this two are the main source to understand what is happening:
(1) Replace Discouraged Syntaxes of rand and randn
(2) ClockRandSeed
as you see there is a func from PTB but I think that in matlab might be better to use
RandStream.setGlobalStream. From what I grasp is the best solution.fix #95