Skip to content

Commit

Permalink
Addressed minor pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhang03 committed Jun 27, 2024
1 parent c2ee292 commit e7a4ad9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
28 changes: 3 additions & 25 deletions examples/timeline-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,9 @@
const metadata_options = {
randomField: "this is a field",
author: {
"John Cena": {
name: "John Cena",
givenName: "Sammy Salami",
},
"Darnell": {
givenName: "bob",
},
"Bob": "Bob",
"Joe": {
name: "Joe",
},
"Ostrich": {
bbqblaster: 10,
"John": {
name: "John",
givenName: "Johnathan",
},
},
variables: {
Expand All @@ -35,21 +25,9 @@
"chat-plugin": "this chat plugin allows you to talk to gpt!",
}
},
"time_elapsed": {
bbq: "indicates the number of barbeques",
description: {
"chat-plugin": "this chat plugin allows you to talk to gpt!",
"donut-plugin": "this plugin lets you eat donuts!",
"bbq-plugin": "this plugin lets you spell barbeque",
}
},
"trial_index": {
value: "NEW VALUE",
bbq: "number of barbeques per sq ft",
name: "index",
donuts: "Number of donuts",
},

},
}

Expand Down
2 changes: 0 additions & 2 deletions packages/jspsych/src/modules/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ export type UniversalPluginParameters = InferredParameters<typeof universalPlugi

export interface PluginInfo {
name: string;
version?: string;
parameters: ParameterInfos;
data?: ParameterInfos;
}

export interface JsPsychPlugin<I extends PluginInfo> {
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych/metadata",
"version": "0.0.1",
"description": "jsPsych plugin for creating and customizing metadata according to Psych-DS standards.",
"description": "jsPsych package for creating and customizing metadata according to Psych-DS standards.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand Down
3 changes: 1 addition & 2 deletions packages/metadata/src/PluginCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class PluginCache {
async getPluginInfo(pluginType: string, variableName: string) {
// fetches if it doesn't exist
if (!(pluginType in this.pluginFields)) {
console.log("doesn't exist -- plugintype:", pluginType, "variableName:", variableName); // checking search
const fields = await this.generatePluginFields(pluginType);
this.pluginFields[pluginType] = fields;
}
Expand Down Expand Up @@ -57,7 +56,7 @@ export class PluginCache {
pluginType,
"with error",
error,
"If you are using a plugin not in the main JsPsych branch it will not automatically fetch."
"Note: if you are using a plugin not in the main JsPsych branch this will always fail."
);
return undefined;
}
Expand Down

0 comments on commit e7a4ad9

Please sign in to comment.