Skip to content

Commit

Permalink
Added new code to produce distributions. Versiojn bump to 1.0.0git st…
Browse files Browse the repository at this point in the history
…atus!
  • Loading branch information
transientlunatic committed Sep 14, 2016
1 parent d9e3279 commit 0989bcb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
History
=======

1.0.0 (2016-09-14)
------------------
The Anniversary Update.

* ER10 and O2 Readiness
* Fully capable of producing supernova injections
* Fully capable of producing lalsimulation-burst waveforms
* Extensible interface for parameter distributions

0.1.0 (2016-3-14)
------------------

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Features
* Produces numerical relativity burst MDCs for supernovae
* Produces GWF frame files for MDCs
* Produces GravEn-format log files for MDCs
* TODO Produces SimBurstTable XML files for MDCs
* Produces SimBurstTable XML files for MDCs


Credits
Expand Down
2 changes: 1 addition & 1 deletion minke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = 'Daniel Williams'
__email__ = '[email protected]'
__version__ = '0.1.0'
__version__ = '1.0.0'
11 changes: 7 additions & 4 deletions minke/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ def burst_dist(minimum, maximum):
as desired by the Burst group for observing MDCs
"""
#extent = numpy.log10(maximum) - numpy.log10(minimum)
a = minimum**2 / (minimum**2 + 50)**2
b = maximum**2 / (maximum**2 + 50)**2
# Convert hrss to distance
minimum, maximum = 1/minimum, 1/maximum
#Set-up the distributions limits
a = (minimum + 50.0/minimum)**2
b = (maximum + 50.0/maximum)**2
rnd = numpy.random.uniform(a,b)
#print numpy.sqrt(1.0/rnd)
return numpy.sqrt(1.0/rnd)
# Convert back to an hrss
return 1.0/numpy.sqrt(rnd)
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

setup(
name='minke',
version='0.1.0',
version='1.0.0',
description="Minke is a Python package to produce Mock Data Challenge data sets for LIGO interferometers.",
long_description=readme + '\n\n' + history,
author="Daniel Williams",
Expand All @@ -45,8 +45,8 @@
zip_safe=False,
keywords='minke',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
"Programming Language :: Python :: 2",
Expand Down

0 comments on commit 0989bcb

Please sign in to comment.