Skip to content

Commit

Permalink
fix: adjusted global import for cobra process
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Jan 8, 2024
1 parent 5115113 commit c29da07
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions biosimulator_processes/cobra_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


from process_bigraph import Process
from cobra.io import read_sbml_model


class CobraProcess(Process):
Expand All @@ -14,15 +15,6 @@ class CobraProcess(Process):
def __init__(self, config=None):
super().__init__(config)

try:
from cobra.io import read_sbml_model
# from cobra_process.library import pf
except:
raise ImportError('''
You must install core-processes with the [cobra] optional requirement.
See the README for more information.
''')

self.model = read_sbml_model(self.config['model_file'])
self.reactions = self.model.reactions
self.metabolites = self.model.metabolites
Expand Down

0 comments on commit c29da07

Please sign in to comment.