zhanglab / psamm

Curation and analysis of metabolic models
https://zhanglab.github.io/psamm/
GNU General Public License v3.0
34 stars 15 forks source link

Namespace update #222

Closed jonls closed 7 years ago

jonls commented 7 years ago

Add alternative lookup syntax for namespaces v[1] instead of v(1). This works better when keys are tuples: v[1, 2] vs. v((1,2)). Also implement __contains__ so the in operator can be used instead of has_variable(). Add additional documentation on the use of namespaces.