From 14f9a328ab8ec3d4e903f5e7d1f3f177b2e8ccd3 Mon Sep 17 00:00:00 2001 From: pgris Date: Thu, 16 Jul 2020 09:22:26 +0200 Subject: [PATCH] update README: bookeeping the releases --- README.md | 4 +++- sn_tools/sn_utils.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db9d9e55..85dee403 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ We welcome requests to access code for non-DESC use; if you wish to use the code ``` ## Release Status -This code is under development and has not yet been released. +|Release|Date|packages| +|---|---|---| +|v1.0.0|2020/07/15|sn_tools_v1.0.0| ## Feedback, License etc diff --git a/sn_tools/sn_utils.py b/sn_tools/sn_utils.py index d767a63b..37a949cc 100644 --- a/sn_tools/sn_utils.py +++ b/sn_tools/sn_utils.py @@ -282,14 +282,14 @@ def getParameters(self, daymin, daymax, duration): # get number of supernovae N_SN = int(np.cumsum(nsn)[-1]) if np.cumsum(nsn)[-1] < 0.5: - print('none',zmin,zmax,duration) + #print('none',zmin,zmax,duration) return None weight_z = np.cumsum(nsn)/np.sum(np.cumsum(nsn)) if N_SN < 1: N_SN = 1 # weight_z = 1 - print('nsn', N_SN) + #print('nsn', N_SN) for j in range(N_SN): z = self.getVal(self.params['z']['type'], zmin, zz, weight_z) zrange = 'low_z'