Skip to content

Commit

Permalink
take out debug
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Aug 30, 2023
1 parent 09ef9e9 commit 493ec55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/static/src/app/plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export const paramSetLineStyle = (index: number): string => (lineStyles[index %

export const updatePlotTraceName = (plotTrace: Partial<PlotData>, param: string | null, value: number | null,
parameterSetName = "") => {
console.log(`updating plot trace nane with param ${param} and value ${value}`)
const parenthesisItems = [];
if (param && value) {
parenthesisItems.push(`${param}=${format(".3f")(value)}`);
Expand Down
5 changes: 3 additions & 2 deletions app/static/src/app/store/sensitivity/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const batchRunDiscrete = (runner: OdinRunnerDiscrete,
replicates: number,
dispatch: Dispatch,
commit: Commit): Batch => {
console.log("Attempting batchRunDiscrete")
const batch = runner.batchRunDiscrete(odin, pars, 0, endTime, dt, replicates);
console.log("Did batchRunDiscrete")
console.log(JSON.stringify(batch))
commit(SensitivityMutation.SetRunning, true);
dispatch(SensitivityAction.ComputeNext, batch);
return batch;
Expand Down Expand Up @@ -79,8 +82,6 @@ const runSensitivity = (batchPars: BatchPars, endTime: number, context: ActionCo
const { advancedSettings, parameterValues } = rootState.run;

try {
console.log("Running sensitivity");
console.log("BatchPars: " + JSON.stringify(batchPars))
const batch = isStochastic
? batchRunDiscrete(odinRunnerDiscrete!, odin, batchPars, endTime, dt!, replicates, dispatch, commit)
: batchRunOde(odinRunnerOde!, odin, batchPars, endTime, advancedSettings, parameterValues);
Expand Down
2 changes: 0 additions & 2 deletions app/static/src/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ export function generateBatchPars(
}
}

console.log("VARYING PARAM: " + JSON.stringify(varyingParam))

const error = errorDetail ? { error: userMessages.sensitivity.invalidSettings, detail: errorDetail } : null;
const batchPars = errorDetail ? null : { base: paramValues!, varying: [varyingParam!] };
return {
Expand Down

0 comments on commit 493ec55

Please sign in to comment.