mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
remove functions related to internal_node_id
This commit is contained in:
parent
754b54e55e
commit
2aa9e63d84
@ -100,35 +100,6 @@ console.log(all_data.csv());
|
||||
|
||||
---
|
||||
|
||||
## jsPsych.data.getDataByTimelineNode
|
||||
|
||||
```javascript
|
||||
jsPsych.data.getDataByTimelineNode(node_id)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Parameter | Type | Description
|
||||
----------|------|------------
|
||||
node_id | string | The id of the TimelineNodes to get data from.
|
||||
|
||||
### Return value
|
||||
|
||||
Returns a DataCollection of all of the data generated in a specified TimelineNode.
|
||||
|
||||
### Description
|
||||
|
||||
Get all the data generated by a specified Timeline.
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
var current_node_id = jsPsych.getCurrentTimelineNodeID();
|
||||
var data_from_current_node = jsPsych.data.getDataByTimelineNode(current_node_id);
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## jsPsych.data.getInteractionData
|
||||
|
||||
```javascript
|
||||
|
@ -287,52 +287,6 @@ This method tells jsPsych that the current trial is over. It is used in all of t
|
||||
jsPsych.finishTrial({correct_response: true});
|
||||
```
|
||||
|
||||
---
|
||||
## jsPsych.getCurrentTimelineNodeID
|
||||
|
||||
```javascript
|
||||
jsPsych.getCurrentTimelineNodeID()
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
None.
|
||||
|
||||
### Return value
|
||||
|
||||
Returns the ID of the TimelineNode that is currently active.
|
||||
|
||||
### Description
|
||||
|
||||
Gets the ID of the active TimelineNode. The ID is a string that follows a specific format:
|
||||
|
||||
* `"0.0"` is the ID of the first top-level TimelineNode
|
||||
* `"1.0"` is the ID of the second top-level TimelineNode
|
||||
* `"2.0"` is the ID of the third top-level TimelineNode, and so on...
|
||||
|
||||
If a TimelineNode iterates multiple times (using the loop function, for example), then the iterations are indicated in the second number:
|
||||
|
||||
* `"0.0"` is the ID of the first top-level TimelineNode during the first iteration
|
||||
* `"0.1"` is the ID of the first top-level TimelineNode during the second iteration
|
||||
* `"0.2"` is the ID of the first top-level TimelineNode during the third iteration, and so on...
|
||||
|
||||
If TimelineNodes are nested in other TimelineNodes, then the hierarchical structure is shown with `"-"`:
|
||||
|
||||
* `"0.0-1.0"` is the ID of the second TimelineNode on the timeline of the first top-level TimelineNode.
|
||||
* `"0.0-2.0"` is the ID of the third TimelineNode on the timeline of the first top-level TimelineNode, and so on...
|
||||
|
||||
The rules about iterations apply throughout the hierarchical ID:
|
||||
|
||||
* `"0.2-1.3"` is the ID of the second TimelineNode, executing for the fourth time, on the timeline of the first top-level TimelineNode, executing for the third time.
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```javascript
|
||||
var id = jsPsych.getCurrentTimelineNodeID();
|
||||
console.log('The current TimelineNode ID is '+id);
|
||||
```
|
||||
|
||||
---
|
||||
## jsPsych.getCurrentTrial
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user