hyperfunk/mastercode-tools — pull request #43 by keesjandevries (2012-06-18 17:05:49+00:00)
Title: Derived variables

Hi,

I fixed the log axes and introduced a derived class. The latter forced me to
1) introduce modules/variables.py in modules/histogram_processing.py
2) make MCSpace take Variables, instead of MCVariables,
3) make mcf an attribute of MCSpace, to be able to calculate chain indices

But now it beautifully works. For a derived class we simply define a Variable, i.e. including long- and short- name , it's corresponding function, which allow to add a DerivedMCVariable to the list of mc_variables().

Then we can use them as usually in config/plots.py

Best,
Kees