Skip to content

Commit

Permalink
Merge pull request #95 from parea-ai/PAI-1520-throw-error-on-no-name-…
Browse files Browse the repository at this point in the history
…p-exp-sdkt

feat(exp): throw error on missing name
  • Loading branch information
jalexanderII authored Nov 26, 2024
2 parents 405058d + e451627 commit 9164d76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/experiment/experiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class Experiment<T extends Record<string, any>, R> {
private options: ExperimentOptions,
parea: Parea,
) {
if (!name) {
throw new Error('Experiment name is required');
}
this.runner = new ExperimentRunner(this.options.nWorkers || 10);
this.p = parea;
this.trySetDataset(dataset);
Expand Down

0 comments on commit 9164d76

Please sign in to comment.