Skip to content

Commit

Permalink
#3 Simplify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Nov 14, 2023
1 parent 51aac10 commit 85841dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions chaste_codegen_sbml/filewriters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import sys
import os.path
from libsbml import *
from . import translator

# Script with functions that will write all the necessary SBML info into Chaste .cpp
Expand Down
4 changes: 1 addition & 3 deletions chaste_codegen_sbml/generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import sys
import os
from os.path import basename
from libsbml import SBMLReader
from . import translator
from . import filewriters
Expand Down Expand Up @@ -57,7 +55,7 @@ def Generate(sbml_file, output_filename=None, output_directory=None):

#Get Name of file
if not output_filename:
output_filename = basename(sbml_file).split('.')[0]
output_filename = os.path.basename(sbml_file).split('.')[0]

# If there are events in the model, we define the class as a cell cycle model.
# Otherwise, the model is assumed to be a subcellular reaction network model.
Expand Down
4 changes: 0 additions & 4 deletions chaste_codegen_sbml/translator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import sys
import os.path
from libsbml import *

# Script with useful functions to extract the relevant information from an
# SBML file needed to define an ODE Model in Chaste

Expand Down

0 comments on commit 85841dd

Please sign in to comment.