Skip to content

Commit

Permalink
- fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 12, 2024
1 parent 88d0e46 commit 36c4fb4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/copasi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class COPASI {
readonly localParameterValues : number[];
readonly jacobian: object;
readonly jacobian2D: number[][];
readonly eigenValues: number[][];
readonly eigenValues2D: number[][];
readonly reducedJacobian: object;
readonly reducedJacobian2D: number[][];
readonly eigenValuesReduced2D: number[][];
Expand Down
2 changes: 1 addition & 1 deletion js/copasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class COPASI {
* @property {object} jacobian the jacobian as object
*/
get jacobian() {
return JSON.parse(this.Module.getJacbian());
return JSON.parse(this.Module.getJacobian());
}

/**
Expand Down
21 changes: 20 additions & 1 deletion test/test_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,25 @@ createApi().then((Module) => {
// simulate the model
console.log(instance.simulateEx(0, 10, 11));

// run
// run steady state
console.log(instance.steadyState());

// print jacobian
console.log(instance.jacobian);

// print jacobian
console.log(instance.jacobian2D);

// print eigenvalues
console.log(instance.eigenValues2D);

// print jacobian
console.log(instance.reducedJacobian);

// print jacobian
console.log(instance.reducedJacobian2D);

// print eigenvalues
console.log(instance.eigenValuesReduced2D);

});

0 comments on commit 36c4fb4

Please sign in to comment.