cleanup
This commit is contained in:
@@ -4,9 +4,11 @@ from colour import *
|
||||
from rs.reaction_system import ReactionSystem
|
||||
|
||||
class ParameterSet(object):
|
||||
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
|
||||
class ReactionSystemWithConcentrationsParam(ReactionSystem):
|
||||
|
||||
def __init__(self):
|
||||
@@ -29,7 +31,8 @@ class ReactionSystemWithConcentrationsParam(ReactionSystem):
|
||||
name = e
|
||||
print("\nWARNING: no maximal concentration level specified for:", e, "\n")
|
||||
else:
|
||||
raise RuntimeError("Bad entity type when adding background set element")
|
||||
raise RuntimeError(
|
||||
"Bad entity type when adding background set element")
|
||||
|
||||
self.assume_not_in_bgset(name)
|
||||
self.background_set.append(name)
|
||||
@@ -73,7 +76,8 @@ class ReactionSystemWithConcentrationsParam(ReactionSystem):
|
||||
|
||||
def has_non_zero_concentration(self, elem):
|
||||
if elem[1] < 1:
|
||||
raise RuntimeError("Unexpected concentration level in state: " + str(elem))
|
||||
raise RuntimeError(
|
||||
"Unexpected concentration level in state: " + str(elem))
|
||||
|
||||
def process_rip(self, R, I, P, ignore_empty_R=False):
|
||||
"""Chcecks concentration levels and converts entities names into their ids"""
|
||||
|
||||
Reference in New Issue
Block a user