Location: cellLib @ 389a65e6b05f / Scripts / txt2cellml.ps1

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-28 10:16:25+12:00
Desc:
Add writePara.m for documentation
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/389a65e6b05f56b571eae0673c8f089214440681/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
}