Skip to content

Commit

Permalink
fix: align ModelicaExperiment defaults with impact-client-python
Browse files Browse the repository at this point in the history
  • Loading branch information
x-oflisback committed Oct 14, 2022
1 parent 4765b43 commit 8d283f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/ModelicaExperiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ModelicaExperiment {
include_protected_variables: false,
},
runtimeOptions: {},
compilerLogLevel: 'w',
compilerLogLevel: 'warning',
fmiTarget: 'me',
fmiVersion: '2.0',
platform: 'auto',
Expand All @@ -82,10 +82,10 @@ export class ModelicaExperiment {
type: this.customFunction,
parameters: this.parameters || this.DefaultParameters,
simulationOptions: {
ncp: 500,
ncp: 100,
dynamic_diagnostics: false,
},
solverOptions: { rtol: '1e-6' },
solverOptions: {},
simulationLogLevel: 'WARNING',
},
modifiers: this.modifiers || {},
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/experiment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test('Create experiment without modifiers and parameters', () => {
include_protected_variables: false,
},
runtimeOptions: {},
compilerLogLevel: 'w',
compilerLogLevel: 'warning',
fmiTarget: 'me',
fmiVersion: '2.0',
platform: 'auto',
Expand All @@ -33,10 +33,10 @@ test('Create experiment without modifiers and parameters', () => {
final_time: 1,
},
simulationOptions: {
ncp: 500,
ncp: 100,
dynamic_diagnostics: false,
},
solverOptions: { rtol: '1e-6' },
solverOptions: {},
simulationLogLevel: 'WARNING',
},
modifiers: {},
Expand Down Expand Up @@ -81,7 +81,7 @@ test('Create experiment with modifiers and parameters', () => {
include_protected_variables: false,
},
runtimeOptions: {},
compilerLogLevel: 'w',
compilerLogLevel: 'warning',
fmiTarget: 'me',
fmiVersion: '2.0',
platform: 'auto',
Expand All @@ -91,10 +91,10 @@ test('Create experiment with modifiers and parameters', () => {
type: customFunction,
parameters: { start_time: 0, final_time: 4 },
simulationOptions: {
ncp: 500,
ncp: 100,
dynamic_diagnostics: false,
},
solverOptions: { rtol: '1e-6' },
solverOptions: {},
simulationLogLevel: 'WARNING',
},
modifiers,
Expand Down

0 comments on commit 8d283f3

Please sign in to comment.