Location: cellLib @ 19b058307b9f / Scripts / txt2cellml.ps1

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-20 10:24:11+12:00
Desc:
Add units; pass the inputs to the children models
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/19b058307b9f998bfffa80c25aa156fa64500e44/Scripts/txt2cellml.ps1

## Convert .txt to .cellml
# go to the OpenCOR folder
$dpath= ''
cd $dpath
# model path
$mpath=''
$txtfiles="Para","PASMC"

foreach ($txtfile in $txtfiles)
{
  ./OpenCOR -c CellMLTextView::export $mpath\$txtfile.txt | out-file $mpath\$txtfile.cellml -encoding utf8
}