Skip to content

Commit

Permalink
update heta version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Sep 25, 2024
1 parent 610687c commit ddeabe6
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
persist-credentials: false
- name: Install and build
run: |
npm i -g heta-compiler@0.8.4
npm i -g heta-compiler
heta build
- name: Run R code
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
strategy:
matrix:
node-version: [ 16.x, 18.x, 20.x ]
node-version: [ 16.x, 18.x, 20.x, 22.x ]
heta-version: [ latest ]
platform: [ ubuntu-latest, windows-latest, macos-latest ]

Expand Down
10 changes: 6 additions & 4 deletions R/run-mrgsolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
model_path <- './dist/mrgsolve/nameless.cpp'
fig_path <- './dist/mrg.png'
library(mrgsolve)
library(lattice)

### main code
message('Reading model... ', appendLF = FALSE)
Expand All @@ -22,9 +23,10 @@ message('OK')

message('Plot results and save to file ${fig_path}... ', appendLF = FALSE)
plot <- sim %>%
plot(A + B + r1 + comp1 ~ time, type='l')
plot(A + B + r1 + comp1 ~ time, type='l')

lattice::trellis.device(device = png, file = fig_path)
print(plot)
dev.off()

lattice::trellis.device(device = png, file = fig_path )
print(plot)
dev.off()
message('OK')
12 changes: 0 additions & 12 deletions platform.json

This file was deleted.

25 changes: 25 additions & 0 deletions platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "mini",
"license": "MIT",
"builderVersion": "^0.9.0",
"options": {
"logLevel": "info"
},
"importModule": {
"type": "heta",
"source": "src/index.heta"
},
"export": [
{ "format": "SBML" },
{ "format": "Mrgsolve" },
{ "format": "DBSolve" },
{ "format": "Simbio" },
{ "format": "JSON" },
{ "format": "YAML" },
{ "format": "JSON" },
{ "format": "Matlab" },
{ "format": "XLSX" },
{ "format": "Julia" },
{ "format": "Summary" }
]
}
12 changes: 0 additions & 12 deletions src/index.heta
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,3 @@ B .= 0;
r1 := k1 * A * comp1;

k1 @Const = 1.2e-1;

#export { format: SBML };
#export { format: Mrgsolve };
#export { format: DBSolve };
#export { format: Simbio };
#export { format: JSON };
#export { format: YAML };
#export { format: JSON };
#export { format: Matlab };
#export { format: XLSX };
#export { format: Julia };
#export { format: Summary };

0 comments on commit ddeabe6

Please sign in to comment.