Skip to content

Commit

Permalink
update README: bookeeping the releases
Browse files Browse the repository at this point in the history
  • Loading branch information
pgris committed Jul 16, 2020
1 parent d97a4b5 commit 14f9a32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions sn_tools/sn_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 14f9a32

Please sign in to comment.