Location: SLC transporters @ 54428a600e2c / src / sim_GLUT2.py

Author:
Weiwei Ai <wai484@aucklanduni.ac.nz>
Date:
2024-05-27 16:40:34+12:00
Desc:
Fixed typos
Permanent Source URI:
http://models.cellml.org/workspace/b65/rawfile/54428a600e2c560005a2d9d0a5608082f90a7c0c/src/sim_GLUT2.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_='../Facilitated transporter/CellMLV2/'
working_dir = os.path.join(current_dir, path_)
sedFiles=['GLUT2_kinetic.sedml','GLUT2_ss_io.sedml','GLUT2_ss_oi.sedml','GLUT2_BG_ss_oi.sedml','GLUT2_BG_ss_io.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)