ReactionParser
PyCellChemistry documentation index
source code: src/artchem/ReactionParser.py

#---------------------------------------------------------------------------
#
# ReactionParser.py: parser for chemical reactions in text format, such as:
#
# A + 2 B --> 3 C , k=2.49
#
# by Lidia Yamamoto, Univ. Basel, Switzerland, January 2010
# June 2013: adapted to the PyCellChemistry package
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Copyright (C) 2015 Lidia A. R. Yamamoto
# Contact: http://www.artificial-chemistries.org/
#
# This file is part of PyCellChemistry.
#
# PyCellChemistry is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 3, as published by the Free Software Foundation.
#
# PyCellChemistry is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyCellChemistry, see file COPYING. If not, see
# http://www.gnu.org/licenses/
#


Modules
numpy
sys


Classes
ReactionParser


class ReactionParser
Methods defined here:
parse_file(self, fname)
open and parse input file fname
parse_input(self, infile)
parse input file containing multiple chemical reactions,
one per line.
'infile' is the file descriptor for the open input file
parse_line(self, line)
parse string containing chemical reaction
parse_molecules(self, mollist)
parse educt or product multiset given as a list of strings
containing the molecule name and an optional stoichiometric
coefficient, e.g. [ 'a', '2 fox', '4 b1' ]
parse_stdin(self)
parse standard input (stdin)


Generated automatically by pydoc, July 10, 2015


Generated automatically by pydoc, July 10, 2015