Fix measure_dr_pref
Merge pull request #8 from Tobias-Fischer/measure_dr_fix

Fix measure_dr_pref.  Not sure about the np.max issue, but if you figure out that needs to be changed, I'd be happy to change that too.