Location: cellLib @ 4ff19c3f257b / Scripts / txt2cellml.ps1

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-20 20:26:31+12:00
Desc:
Add concentration clamp; Check interface IO when mapping; Add init in the csv to allow building a model with init:
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/4ff19c3f257b33704e3c001e62550111f4ed828a/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
}