Location: Single PASMC model (Gosak et al 2014) @ 6da81433ecbd / Components / txt2cellml.ps1

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-22 10:51:28+12:00
Desc:
Rebuild the model using the new scripts
Permanent Source URI:
https://models.cellml.org/workspace/83f/rawfile/6da81433ecbd0457201bb2d3271f1cc7e238bd68/Components/txt2cellml.ps1

## Convert .txt to .cellml
# go to the OpenCOR folder
$dpath= 'C:\Users\wai484\Documents\OpenCOR'
cd $dpath
# model path
$mpath='C:\Users\wai484\Documents\SinglePASMC\Components'
$txtfiles="JVOCCi", "JNCXi", "JSERCAi", "JCICRi", "JPMCAi", "Jleaki", "JNKAi","JCli","JKi","Para","Cai","Casr","Vm","PASMC"

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

./OpenCOR -c CellMLTextView::export C:\Users\wai484\Documents\SinglePASMC\Experiments\PASMC_test.txt | out-file C:\Users\wai484\Documents\SinglePASMC\Experiments\PASMC_test.cellm