-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add function for flipping coherent dots in a trial #147
Conversation
🦋 Changeset detectedLatest commit: f7655f2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Anyone can review this? |
Do I need to make new plugin? @jodeleeuw |
@jadeddelta if you have a chance to look at this. I will try soon! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! just switch up the version bump type and i think we should be good to go
.changeset/odd-laws-sleep.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
"@jspsych-contrib/plugin-rdk": patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably make this a minor version bump, patch is usually reserved for bug fixes and minor is reserved for backwards-compatible feature releases like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed the version bump from patch into minor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything looks good! i'll run it through one last time with Josh and we'll merge it!
This PR improves PLUGIN-RDK and adds a function that flip the direction of coherent dots.
You can change the direction of moving dots oppositely during a trial as many times as you want.
Information about added parameter follows below:
Name: flip_timestamps
Type: Array
Default: []
This function is similar one implemented in this study, where dots' directions are flipped probabilistically.
https://elifesciences.org/articles/08825
How to verify
please
cd plugin-rdk
,npm i
andnpm run build
.I modified
example1.html
so you can check how it works.Thank you in advance!