Location: SLC transporters @ 6625532496cd / src / sim_SGLT1.py

Author:
Weiwei Ai <wai484@aucklanduni.ac.nz>
Date:
2024-05-27 12:37:21+12:00
Desc:
Update figures and submodule sedCellML
Permanent Source URI:
https://models.physiomeproject.org/workspace/b65/rawfile/6625532496cd4d09db3c72278c24fe5ef8cf84cd/src/sim_SGLT1.py

import os
import sys
# Get the directory containing the current file
current_dir = os.path.dirname(os.path.abspath(__file__))
# Append the 'sedCellMLPy' directory to the system path
sys.path.append(os.path.join(current_dir, '../sedCellMLPy/'))
from sedCollector import read_sedml
from sedExecutor import exec_sed_doc
from pathlib import Path

path_='../Electrogenic cotransporter/CellMLV2/'
working_dir = os.path.join(current_dir, path_)
sedFiles=['SGLT1_ss.sedml','SGLT1_ss_fast.sedml','SGLT1_BG.sedml','SGLT1_BG_ss.sedml']

for sedFile in sedFiles:
    full_path=os.path.join(current_dir, path_,sedFile)
    doc=read_sedml(full_path)
    exec_sed_doc(doc, working_dir, working_dir, rel_out_path='sim_results', external_variables_info={},
                  external_variables_values=[],ss_time={},cost_type=None)