From 271a7e8fa41b16f843149390d71959966a5466c3 Mon Sep 17 00:00:00 2001 From: William Cerny Date: Fri, 20 Jan 2023 17:46:11 -0500 Subject: [PATCH] Update results.py Update Martin absolute magnitude calculation to use magnitude limits specified in config file (rather than hardcoded value of 23.0) --- ugali/analysis/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ugali/analysis/results.py b/ugali/analysis/results.py index 99877d6..550f53d 100644 --- a/ugali/analysis/results.py +++ b/ugali/analysis/results.py @@ -279,7 +279,7 @@ def get_results(self,**kwargs): # ADW: WARNING this is very fragile. # Also, this is not quite right, should cut on the CMD available space - kwargs = dict(richness=rich,mag_bright=16., mag_faint=23., + kwargs = dict(richness=rich,mag_bright= self.config['mag'].get('min'), mag_faint=self.config['mag'].get('max'), n_trials=5000,alpha=kwargs['alpha'], seed=0) martin = self.config['results'].get('martin') if martin: