system

Fill in a module description here

source

System

 System (reactions=[])

Initialize self. See help(type(self)) for accurate signature.

class Compound(): pass
H2O, CO2, NO3 = Compound(), Compound(), Compound()
our_universe = 1
reaction1 = 1
subscribers = dict(
    our_universe = {
        "mass": lambda x:1,
        "reactions": {
            reaction1: {
                H2O: [max, max, max],
                CO2: [max, max, max],
                NO3: [max, max, max],
            },
            'reaction2': None
        }
    }
)
subscribers
{'our_universe': {'mass': <function __main__.<lambda>(x)>,
  'reactions': {1: {<__main__.Compound>: [<function max>,
     <function max>,
     <function max>],
    <__main__.Compound>: [<function max>,
     <function max>,
     <function max>],
    <__main__.Compound>: [<function max>,
     <function max>,
     <function max>]},
   'reaction2': None}}}
L(subscribers)
(#3) ['our_universe','reaction1','reaction2']