minke 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- minke-2.0.0/.coveragerc +9 -0
- minke-2.0.0/.editorconfig +21 -0
- minke-2.0.0/.github/workflows/docs.yml +43 -0
- minke-2.0.0/.github/workflows/pypi.yml +39 -0
- minke-2.0.0/.gitignore +62 -0
- minke-2.0.0/.gitlab-ci.yml +115 -0
- minke-2.0.0/.travis/run_tests.sh +10 -0
- minke-2.0.0/.travis/setup_environment.sh +112 -0
- minke-2.0.0/.travis.yml +85 -0
- minke-2.0.0/AUTHORS.rst +13 -0
- minke-2.0.0/CHANGELOG.rst +13 -0
- minke-2.0.0/CONTRIBUTING.rst +117 -0
- minke-2.0.0/HISTORY.rst +62 -0
- minke-2.0.0/LICENSE +14 -0
- minke-2.0.0/MANIFEST.in +11 -0
- minke-2.0.0/Makefile +84 -0
- minke-2.0.0/PKG-INFO +22 -0
- minke-2.0.0/README.rst +45 -0
- minke-2.0.0/Singularity +10 -0
- minke-2.0.0/docs/Makefile +24 -0
- minke-2.0.0/docs/authors.rst +1 -0
- minke-2.0.0/docs/burst.rst +83 -0
- minke-2.0.0/docs/cbc.rst +61 -0
- minke-2.0.0/docs/conf.py +281 -0
- minke-2.0.0/docs/contributing.rst +1 -0
- minke-2.0.0/docs/distributions.rst +23 -0
- minke-2.0.0/docs/docker.rst +73 -0
- minke-2.0.0/docs/hardware-injections.rst +5 -0
- minke-2.0.0/docs/history.rst +1 -0
- minke-2.0.0/docs/images/bursts/projected_sinegaussian.png +0 -0
- minke-2.0.0/docs/images/cbc/waveform-imrphenompv2.png +0 -0
- minke-2.0.0/docs/images/cbc/waveform-seobnrv2.png +0 -0
- minke-2.0.0/docs/images/cbc/waveform-seobnrv3.png +0 -0
- minke-2.0.0/docs/images/injections/projected_injection_function.png +0 -0
- minke-2.0.0/docs/images/injections/projected_injection_script.png +0 -0
- minke-2.0.0/docs/images/injections/projected_injection_zero.png +0 -0
- minke-2.0.0/docs/images/noise/timeseries-advancedligo.png +0 -0
- minke-2.0.0/docs/images/projected_injection_script.png +0 -0
- minke-2.0.0/docs/index.rst +108 -0
- minke-2.0.0/docs/installation.rst +94 -0
- minke-2.0.0/docs/make.bat +242 -0
- minke-2.0.0/docs/minke.models.rst +29 -0
- minke-2.0.0/docs/minke.rst +109 -0
- minke-2.0.0/docs/modules.rst +7 -0
- minke-2.0.0/docs/noise.rst +19 -0
- minke-2.0.0/docs/numerical.rst +54 -0
- minke-2.0.0/docs/other-software.rst +11 -0
- minke-2.0.0/docs/quickstart.rst +85 -0
- minke-2.0.0/docs/readme.rst +1 -0
- minke-2.0.0/docs/ringdowns.rst +36 -0
- minke-2.0.0/docs/software-injections.rst +145 -0
- minke-2.0.0/docs/tutorial-SNR-threshold.rst +68 -0
- minke-2.0.0/docs/tutorial-editing.rst +42 -0
- minke-2.0.0/docs/tutorial-hardware.rst +34 -0
- minke-2.0.0/docs/tutorial-supernova.rst +65 -0
- minke-2.0.0/docs/tutorial.rst +106 -0
- minke-2.0.0/docs/usage.rst +11 -0
- minke-2.0.0/examples/0-quickstart.py +28 -0
- minke-2.0.0/examples/1-seobnrv3.py +28 -0
- minke-2.0.0/examples/2-noise.py +8 -0
- minke-2.0.0/examples/3-injection.py +30 -0
- minke-2.0.0/examples/4-make-injection.py +24 -0
- minke-2.0.0/examples/5-sinegaussian.py +32 -0
- minke-2.0.0/logo.svg +130 -0
- minke-2.0.0/minke/__init__.py +11 -0
- minke-2.0.0/minke/__main__.py +14 -0
- minke-2.0.0/minke/asimov.py +152 -0
- minke-2.0.0/minke/bilby.py +4 -0
- minke-2.0.0/minke/cli.py +0 -0
- minke-2.0.0/minke/detector.py +101 -0
- minke-2.0.0/minke/distribution.py +200 -0
- minke-2.0.0/minke/injection.py +195 -0
- minke-2.0.0/minke/mdctools.py +946 -0
- minke-2.0.0/minke/minke_template.yml +44 -0
- minke-2.0.0/minke/models/__init__.py +83 -0
- minke-2.0.0/minke/models/bursts.py +1 -0
- minke-2.0.0/minke/models/cbc.py +6 -0
- minke-2.0.0/minke/models/lalburst.py +78 -0
- minke-2.0.0/minke/models/lalnoise.py +139 -0
- minke-2.0.0/minke/models/lalsimulation.py +198 -0
- minke-2.0.0/minke/noise.py +139 -0
- minke-2.0.0/minke/sources.py +1526 -0
- minke-2.0.0/minke/types.py +238 -0
- minke-2.0.0/minke/utils.py +12 -0
- minke-2.0.0/minke.egg-info/PKG-INFO +22 -0
- minke-2.0.0/minke.egg-info/SOURCES.txt +120 -0
- minke-2.0.0/minke.egg-info/dependency_links.txt +1 -0
- minke-2.0.0/minke.egg-info/entry_points.txt +5 -0
- minke-2.0.0/minke.egg-info/requires.txt +10 -0
- minke-2.0.0/minke.egg-info/top_level.txt +1 -0
- minke-2.0.0/minke.png +0 -0
- minke-2.0.0/notebooks/Sine Gaussians.ipynb +540 -0
- minke-2.0.0/notebooks/Supernovae.ipynb +392 -0
- minke-2.0.0/notebooks/The great minke supernova bug-hunt.ipynb +1668 -0
- minke-2.0.0/notebooks/test.xml +58 -0
- minke-2.0.0/notebooks/test.xml.gz +0 -0
- minke-2.0.0/pyproject.toml +55 -0
- minke-2.0.0/requirements.txt +3 -0
- minke-2.0.0/requirements_dev.txt +9 -0
- minke-2.0.0/scripts/make-hw-frames.py +29 -0
- minke-2.0.0/scripts/measure_snr.py +9 -0
- minke-2.0.0/scripts/xml-report.py +132 -0
- minke-2.0.0/setup.cfg +19 -0
- minke-2.0.0/test.txt +1 -0
- minke-2.0.0/tests/__init__.py +1 -0
- minke-2.0.0/tests/data/README +1 -0
- minke-2.0.0/tests/data/adi_test.mat +0 -0
- minke-2.0.0/tests/data/frame_list.dat +3 -0
- minke-2.0.0/tests/data/ott13.xml.gz +0 -0
- minke-2.0.0/tests/data/ott_test.dat +53693 -0
- minke-2.0.0/tests/data/ott_test.dat.dec +7919 -0
- minke-2.0.0/tests/data/ott_test.xml.gz +0 -0
- minke-2.0.0/tests/data/yakunin_test.dat +11533 -0
- minke-2.0.0/tests/data/yakunin_test.dat.dec +37790 -0
- minke-2.0.0/tests/models/__init__.py +181 -0
- minke-2.0.0/tests/models/test_lalburst.py +23 -0
- minke-2.0.0/tests/models/test_lalburst.py~ +9 -0
- minke-2.0.0/tests/models/test_lalsimulation.py +36 -0
- minke-2.0.0/tests/test_minke.py +178 -0
- minke-2.0.0/tests/test_minke_distributions.py +19 -0
- minke-2.0.0/tests/test_sources.py +364 -0
minke-2.0.0/.coveragerc
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 4
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
end_of_line = lf
|
|
12
|
+
|
|
13
|
+
[*.bat]
|
|
14
|
+
indent_style = tab
|
|
15
|
+
end_of_line = crlf
|
|
16
|
+
|
|
17
|
+
[LICENSE]
|
|
18
|
+
insert_final_newline = false
|
|
19
|
+
|
|
20
|
+
[Makefile]
|
|
21
|
+
indent_style = tab
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# This is a basic workflow to help you get started with Actions
|
|
2
|
+
|
|
3
|
+
name: CI
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [ master, v2-preview ]
|
|
8
|
+
# pull_request:
|
|
9
|
+
# branches: [ master, v2-preview ]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build_documentation:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
|
|
17
|
+
- name: Set up Python 3.10
|
|
18
|
+
uses: actions/setup-python@v2
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.10"
|
|
21
|
+
|
|
22
|
+
- name: Build HTML Docs
|
|
23
|
+
run: |
|
|
24
|
+
pip install sphinx sphinx-multiversion
|
|
25
|
+
pip install kentigern
|
|
26
|
+
pip install -r requirements.txt
|
|
27
|
+
pip install -r requirements_dev.txt
|
|
28
|
+
pip install .
|
|
29
|
+
cd docs
|
|
30
|
+
make multi
|
|
31
|
+
|
|
32
|
+
- name: Add redirect to current version
|
|
33
|
+
run: |
|
|
34
|
+
echo "<!DOCTYPE html><html><head><title>Redirecting to master branch</title><meta charset=\"utf-8\"><meta http-equiv=\"refresh\" content=\"0; url=./master/index.html\"> <link rel=\"canonical\" href=\"https://asimov.docs.ligo.org/asimov/master/index.html\"></head></html>" > docs/_build/index.html
|
|
35
|
+
|
|
36
|
+
- name: SCP Deploy HTML Docs
|
|
37
|
+
uses: horochx/deploy-via-scp@v1.0.1
|
|
38
|
+
with:
|
|
39
|
+
local: docs/_build/html/*
|
|
40
|
+
remote: /home/danwilliams/code.daniel-williams.co.uk/minke
|
|
41
|
+
host: ${{ secrets.sshhost }}
|
|
42
|
+
user: ${{ secrets.sshuser }}
|
|
43
|
+
key: ${{ secrets.sshkey }}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This is a basic workflow to help you get started with Actions
|
|
2
|
+
|
|
3
|
+
name: CI
|
|
4
|
+
|
|
5
|
+
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
6
|
+
# events but only for the master branch
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches: [ master ]
|
|
10
|
+
pull_request:
|
|
11
|
+
branches: [ master ]
|
|
12
|
+
|
|
13
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
14
|
+
jobs:
|
|
15
|
+
# This workflow contains a single job called "build"
|
|
16
|
+
build:
|
|
17
|
+
# The type of runner that the job will run on
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v2
|
|
23
|
+
|
|
24
|
+
- name: Set up Python 3.10
|
|
25
|
+
uses: actions/setup-python@v2
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.10"
|
|
28
|
+
|
|
29
|
+
- name: Build wheel
|
|
30
|
+
run: |
|
|
31
|
+
pip install -r requirements.txt
|
|
32
|
+
pip install build wheel
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
- name: pypi-publish
|
|
36
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
|
37
|
+
uses: pypa/gh-action-pypi-publish@v1.3.1
|
|
38
|
+
with:
|
|
39
|
+
password: ${{ secrets.pypitoken }}
|
minke-2.0.0/.gitignore
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
|
|
27
|
+
# PyInstaller
|
|
28
|
+
# Usually these files are written by a python script from a template
|
|
29
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
30
|
+
*.manifest
|
|
31
|
+
*.spec
|
|
32
|
+
|
|
33
|
+
# Installer logs
|
|
34
|
+
pip-log.txt
|
|
35
|
+
pip-delete-this-directory.txt
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.coverage
|
|
41
|
+
.coverage.*
|
|
42
|
+
.cache
|
|
43
|
+
nosetests.xml
|
|
44
|
+
coverage.xml
|
|
45
|
+
*,cover
|
|
46
|
+
.hypothesis/
|
|
47
|
+
|
|
48
|
+
# Translations
|
|
49
|
+
*.mo
|
|
50
|
+
*.pot
|
|
51
|
+
|
|
52
|
+
# Django stuff:
|
|
53
|
+
*.log
|
|
54
|
+
|
|
55
|
+
# Sphinx documentation
|
|
56
|
+
docs/_build/
|
|
57
|
+
|
|
58
|
+
# PyBuilder
|
|
59
|
+
target/
|
|
60
|
+
|
|
61
|
+
# Emacs
|
|
62
|
+
*~
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#image: lpmn/minke:latest
|
|
2
|
+
image: python
|
|
3
|
+
stages:
|
|
4
|
+
- test
|
|
5
|
+
- build
|
|
6
|
+
- deploy
|
|
7
|
+
|
|
8
|
+
# test-python27:
|
|
9
|
+
# stage: test
|
|
10
|
+
# script:
|
|
11
|
+
# - export PYTHONPATH="/usr/local/lib64/python2.7/site-packages"
|
|
12
|
+
# - echo "pandas" > requirements.txt
|
|
13
|
+
# - pip install -r requirements.txt
|
|
14
|
+
# - pip install coverage
|
|
15
|
+
# - python setup.py install
|
|
16
|
+
# - coverage run setup.py test
|
|
17
|
+
# - coverage report -m
|
|
18
|
+
# #- coverage html
|
|
19
|
+
# #- mv htmlcov public/coverage
|
|
20
|
+
# coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
|
|
21
|
+
# artifacts:
|
|
22
|
+
# expire_in: 3h
|
|
23
|
+
# paths:
|
|
24
|
+
# - testout
|
|
25
|
+
# - public
|
|
26
|
+
|
|
27
|
+
test-python-36:
|
|
28
|
+
stage: test
|
|
29
|
+
image: python:3.6
|
|
30
|
+
script:
|
|
31
|
+
- pip install -r requirements.txt
|
|
32
|
+
- pip install coverage
|
|
33
|
+
- python setup.py install
|
|
34
|
+
- coverage run setup.py test
|
|
35
|
+
- coverage report -m
|
|
36
|
+
allow_failure: true
|
|
37
|
+
|
|
38
|
+
test-python-37:
|
|
39
|
+
stage: test
|
|
40
|
+
image: python:3.7
|
|
41
|
+
script:
|
|
42
|
+
- pip install -r requirements.txt
|
|
43
|
+
- pip install coverage
|
|
44
|
+
- python setup.py install
|
|
45
|
+
- coverage run setup.py test
|
|
46
|
+
- coverage report -m
|
|
47
|
+
allow_failure: true
|
|
48
|
+
|
|
49
|
+
pages:
|
|
50
|
+
stage: build
|
|
51
|
+
script:
|
|
52
|
+
- pip install -r requirements.txt
|
|
53
|
+
- pip install .
|
|
54
|
+
- pip install sphinx numpydoc kentigern # sphinxcontrib-versioning
|
|
55
|
+
- pip install -r requirements_dev.txt
|
|
56
|
+
- make docs
|
|
57
|
+
- mv docs/_build/html/ public/
|
|
58
|
+
artifacts:
|
|
59
|
+
paths:
|
|
60
|
+
- public
|
|
61
|
+
only:
|
|
62
|
+
- master
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# # Build receipe for standalone wheels on Linux
|
|
66
|
+
# wheel-27:
|
|
67
|
+
# image: python:2.7
|
|
68
|
+
# stage: build
|
|
69
|
+
# script:
|
|
70
|
+
# - pip install wheel
|
|
71
|
+
# # Build wheel
|
|
72
|
+
# - python setup.py bdist_wheel --universal
|
|
73
|
+
# dependencies: []
|
|
74
|
+
# artifacts:
|
|
75
|
+
# expire_in: 3h
|
|
76
|
+
# paths:
|
|
77
|
+
# - dist
|
|
78
|
+
|
|
79
|
+
wheel-36:
|
|
80
|
+
image: python:3.6
|
|
81
|
+
stage: build
|
|
82
|
+
script:
|
|
83
|
+
- pip install wheel
|
|
84
|
+
# Build wheel
|
|
85
|
+
- python setup.py bdist_wheel --universal
|
|
86
|
+
dependencies: []
|
|
87
|
+
artifacts:
|
|
88
|
+
expire_in: 3h
|
|
89
|
+
paths:
|
|
90
|
+
- dist
|
|
91
|
+
|
|
92
|
+
wheel-37:
|
|
93
|
+
image: python:3.7
|
|
94
|
+
stage: build
|
|
95
|
+
script:
|
|
96
|
+
- pip install wheel
|
|
97
|
+
# Build wheel
|
|
98
|
+
- python setup.py bdist_wheel --universal
|
|
99
|
+
dependencies: []
|
|
100
|
+
artifacts:
|
|
101
|
+
expire_in: 3h
|
|
102
|
+
paths:
|
|
103
|
+
- dist
|
|
104
|
+
|
|
105
|
+
deploy:wheel:
|
|
106
|
+
stage: deploy
|
|
107
|
+
script:
|
|
108
|
+
- pip install twine
|
|
109
|
+
- twine upload dist/*
|
|
110
|
+
only:
|
|
111
|
+
#- master@daniel-williams/minke
|
|
112
|
+
- tags
|
|
113
|
+
# except:
|
|
114
|
+
# - pushes
|
|
115
|
+
# - web
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
#! /bin/bash
|
|
2
|
+
STARTLOC=$(pwd)
|
|
3
|
+
LIBFRAME_VER=v8r26
|
|
4
|
+
LALBRANCH=minke
|
|
5
|
+
mkdir .local
|
|
6
|
+
# CHECK IF WE'RE INSTALLING INTO A VIRTUALENV
|
|
7
|
+
if [ -n "$VIRTUAL_ENV" ]; then
|
|
8
|
+
LOCATION=$VIRTUAL_ENV
|
|
9
|
+
#pip install numpy scipy
|
|
10
|
+
else
|
|
11
|
+
LOCATION=.local;
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# DEFINE THE DIRECTORIES
|
|
17
|
+
LALSUITE_PREFIX=${LOCATION} # install directory: change as appropriate
|
|
18
|
+
LIBFRAME_PREFIX=${LOCATION}
|
|
19
|
+
METAIO_PREFIX=${LOCATION}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if [[ $1 = 'GRID' ]]; then
|
|
23
|
+
echo $GRID
|
|
24
|
+
echo "Installing on the LIGO Data Grid".
|
|
25
|
+
LALSUITE_SRCDIR=/usr1/${USER}/repositories; # uncomment for LDG
|
|
26
|
+
elif [[ $1 = 'UWM' ]]; then
|
|
27
|
+
LALSUITE_SRCDIR=/people/${USER}/repositories; # uncomment for Nemo, UWM
|
|
28
|
+
else
|
|
29
|
+
LALSUITE_SRCDIR=${HOME}/repositories;
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
# MAKE ALL OF THE REQUIRED DIRECTORIES
|
|
33
|
+
mkdir -p ${LALSUITE_SRCDIR}
|
|
34
|
+
mkdir -p ${LALSUITE_PREFIX}
|
|
35
|
+
mkdir -p ${LIBFRAME_PREFIX}
|
|
36
|
+
|
|
37
|
+
#
|
|
38
|
+
# LIBFRAME
|
|
39
|
+
#
|
|
40
|
+
|
|
41
|
+
# FETCH LIBFRAME
|
|
42
|
+
cd ${LALSUITE_SRCDIR}
|
|
43
|
+
wget http://lappweb.in2p3.fr/virgo/FrameL/$LIBFRAME_VER.tar.gz # For the 2015-05-17 release
|
|
44
|
+
tar -xf $LIBFRAME_VER.tar.gz
|
|
45
|
+
cd $LIBFRAME_VER
|
|
46
|
+
|
|
47
|
+
# CONFIG BUILD INSTALL LIBFRAME
|
|
48
|
+
autoreconf --install
|
|
49
|
+
./configure --prefix=${LIBFRAME_PREFIX} --enable-swig-python
|
|
50
|
+
make # (build results are stored on the src directory)
|
|
51
|
+
make install
|
|
52
|
+
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${LIBFRAME_PREFIX} # to update the libraries paths
|
|
53
|
+
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${LIBFRAME_PREFIX}/lib/pkgconfig
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
# MetaIO
|
|
57
|
+
#
|
|
58
|
+
|
|
59
|
+
# Clone the git repo
|
|
60
|
+
cd ${LALSUITE_SRCDIR}
|
|
61
|
+
git clone git://versions.ligo.org/metaio.git
|
|
62
|
+
|
|
63
|
+
# Configure make and install
|
|
64
|
+
cd metaio
|
|
65
|
+
|
|
66
|
+
yes "\n" | ./00boot
|
|
67
|
+
yes "\n" | ./configure --enable-silent-rules --prefix=${METAIO_PREFIX} --enable-swig-python
|
|
68
|
+
make -j 2 --silent || make --silent
|
|
69
|
+
make install --silent
|
|
70
|
+
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${METAIO_PREFIX}/lib
|
|
71
|
+
|
|
72
|
+
#
|
|
73
|
+
# LALSUITE
|
|
74
|
+
#
|
|
75
|
+
|
|
76
|
+
# Clone the repo
|
|
77
|
+
cd ${LALSUITE_SRCDIR}
|
|
78
|
+
git clone git://versions.ligo.org/lalsuite.git # replace as appropriate
|
|
79
|
+
|
|
80
|
+
# Configure make and install
|
|
81
|
+
cd ${LALSUITE_SRCDIR}/lalsuite
|
|
82
|
+
|
|
83
|
+
# Checkout a specific branch of lalsuite if required
|
|
84
|
+
if [ -n "$LALBRANCH" ]; then
|
|
85
|
+
git checkout $LALBRANCH;
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
./00boot
|
|
90
|
+
./configure --prefix=${LALSUITE_PREFIX} --enable-swig-python
|
|
91
|
+
make -j
|
|
92
|
+
make install
|
|
93
|
+
|
|
94
|
+
# Now ready the environment (this line needs to be run every time a shell session is started, so add it to the ~/.bashrc file
|
|
95
|
+
source ${LALSUITE_PREFIX}/etc/lalsuiterc
|
|
96
|
+
|
|
97
|
+
#
|
|
98
|
+
# PyLAL
|
|
99
|
+
#
|
|
100
|
+
cd ${LALSUITE_SRCDIR}/lalsuite/pylal
|
|
101
|
+
rm -rf build
|
|
102
|
+
python setup.py install --prefix=${LALSUITE_PREFIX}
|
|
103
|
+
|
|
104
|
+
#
|
|
105
|
+
# Glue
|
|
106
|
+
#
|
|
107
|
+
cd ${LALSUITE_SRCDIR}/lalsuite/glue
|
|
108
|
+
rm -rf build
|
|
109
|
+
python setup.py install --prefix=${LALSUITE_PREFIX}
|
|
110
|
+
source ${LALSUITE_PREFIX}/etc/glue-user-env.sh
|
|
111
|
+
|
|
112
|
+
cd ${STARTLOC}
|
minke-2.0.0/.travis.yml
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
language: python
|
|
2
|
+
sudo: required
|
|
3
|
+
|
|
4
|
+
addons:
|
|
5
|
+
apt:
|
|
6
|
+
packages:
|
|
7
|
+
# generic packages
|
|
8
|
+
- gcc
|
|
9
|
+
- gfortran
|
|
10
|
+
- libblas-dev
|
|
11
|
+
- liblapack-dev
|
|
12
|
+
# lal dependencies
|
|
13
|
+
- pkg-config
|
|
14
|
+
- zlib1g-dev
|
|
15
|
+
- libgsl0-dev
|
|
16
|
+
- swig
|
|
17
|
+
- bc
|
|
18
|
+
- fftw-dev
|
|
19
|
+
# nds2 dependencies
|
|
20
|
+
- libsasl2-2
|
|
21
|
+
# misc python dependencies
|
|
22
|
+
- libhdf5-serial-dev
|
|
23
|
+
|
|
24
|
+
virtualenv:
|
|
25
|
+
system_site_packages: true
|
|
26
|
+
|
|
27
|
+
matrix:
|
|
28
|
+
include:
|
|
29
|
+
- python: 2.7
|
|
30
|
+
env: STRICT=false
|
|
31
|
+
- python: 3.5
|
|
32
|
+
env: STRICT=false
|
|
33
|
+
- python: 2.7
|
|
34
|
+
env: STRICT=true PRE="--pre"
|
|
35
|
+
allow_failures:
|
|
36
|
+
- python: 2.7
|
|
37
|
+
env: STRICT=true PRE="--pre"
|
|
38
|
+
- python: 3.5
|
|
39
|
+
env: STRICT=false
|
|
40
|
+
fast_finish: true
|
|
41
|
+
|
|
42
|
+
before_install:
|
|
43
|
+
- sudo add-apt-repository ppa:dns/gnu -y
|
|
44
|
+
- sudo apt-get update -q
|
|
45
|
+
- sudo apt-get install --only-upgrade autoconf
|
|
46
|
+
# update pip
|
|
47
|
+
- pip install -q ${PRE} --upgrade pip
|
|
48
|
+
# build and install numpy first
|
|
49
|
+
- pip install -q ${PRE} "numpy>=1.9.1"
|
|
50
|
+
# build src packages
|
|
51
|
+
- source .travis/setup_environment.sh
|
|
52
|
+
# install cython to speed up scipy build
|
|
53
|
+
- travis_retry pip install -q ${PRE} --install-option="--no-cython-compile" Cython
|
|
54
|
+
# install testing dependencies
|
|
55
|
+
- pip install ${PRE} -r requirements_dev.txt
|
|
56
|
+
install:
|
|
57
|
+
- pip install ${PRE} -r requirements.txt
|
|
58
|
+
- python setup.py build
|
|
59
|
+
|
|
60
|
+
script:
|
|
61
|
+
- coverage run setup.py test
|
|
62
|
+
# - . .travis/run-tests.sh
|
|
63
|
+
- pip install .
|
|
64
|
+
|
|
65
|
+
after_success:
|
|
66
|
+
- coveralls
|
|
67
|
+
|
|
68
|
+
cache:
|
|
69
|
+
apt: true
|
|
70
|
+
pip: true
|
|
71
|
+
ccache: true
|
|
72
|
+
directories:
|
|
73
|
+
# cache src builds
|
|
74
|
+
- ${VIRTUAL_ENV}/bin
|
|
75
|
+
- ${VIRTUAL_ENV}/lib
|
|
76
|
+
- ${VIRTUAL_ENV}/opt
|
|
77
|
+
- ${VIRTUAL_ENV}/etc
|
|
78
|
+
|
|
79
|
+
notifications:
|
|
80
|
+
webhooks:
|
|
81
|
+
urls:
|
|
82
|
+
- https://chat.ligo.org/hooks/wknq4kn5c38yurauidajqt8bse
|
|
83
|
+
on_success: always#[always|never|change] # default: always
|
|
84
|
+
on_failure: always#[always|never|change] # default: always
|
|
85
|
+
on_start: always#[always|never|change] # default: never
|
minke-2.0.0/AUTHORS.rst
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Minke Changelog
|
|
2
|
+
===============
|
|
3
|
+
|
|
4
|
+
Please accept my apologies for the rattiness of this CHANGELOG; this is an old project and it didn't have the most organised of starts.
|
|
5
|
+
|
|
6
|
+
2.0.0
|
|
7
|
+
=====
|
|
8
|
+
|
|
9
|
+
Version 2.0.0 is a major feature version, and represents the start of efforts to modernise the codebase.
|
|
10
|
+
We have added initial support for running minke using the asimov automation tool, and some initial support for interaction via a commandline interface.
|
|
11
|
+
We have started to refactor the package to work more closely with the astropy and gwpy packages in order to support useful features such as physical units for quantities.
|
|
12
|
+
Additionally, we have added support for a wider variety of waveform types than was previously possible in minke, and we now provide initial support for making injections of compact binary (CBC) waveforms.
|
|
13
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
.. highlight:: shell
|
|
2
|
+
|
|
3
|
+
============
|
|
4
|
+
Contributing
|
|
5
|
+
============
|
|
6
|
+
|
|
7
|
+
Contributions are welcome, and they are greatly appreciated! Every
|
|
8
|
+
little bit helps, and credit will always be given.
|
|
9
|
+
|
|
10
|
+
You can contribute in many ways:
|
|
11
|
+
|
|
12
|
+
Types of Contributions
|
|
13
|
+
----------------------
|
|
14
|
+
|
|
15
|
+
Report Bugs
|
|
16
|
+
~~~~~~~~~~~
|
|
17
|
+
|
|
18
|
+
If you're a member of the LSC and have access to the Gitlab system at
|
|
19
|
+
https://git.ligo.org please submit bug reports at
|
|
20
|
+
https://git.ligo.org/daniel-williams/minke/issues. Non-LSC members are
|
|
21
|
+
welcome and encouraged to submit reports on our public Github
|
|
22
|
+
repository at https://github.com/transientlunatic/minke/issues.
|
|
23
|
+
|
|
24
|
+
If you are reporting a bug, please include:
|
|
25
|
+
|
|
26
|
+
* Your operating system name and version.
|
|
27
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
28
|
+
* Detailed steps to reproduce the bug.
|
|
29
|
+
|
|
30
|
+
Fix Bugs
|
|
31
|
+
~~~~~~~~
|
|
32
|
+
|
|
33
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug"
|
|
34
|
+
is open to whoever wants to implement it.
|
|
35
|
+
|
|
36
|
+
Implement Features
|
|
37
|
+
~~~~~~~~~~~~~~~~~~
|
|
38
|
+
|
|
39
|
+
Look through the GitHub issues for features. Anything tagged with "feature"
|
|
40
|
+
is open to whoever wants to implement it.
|
|
41
|
+
|
|
42
|
+
Write Documentation
|
|
43
|
+
~~~~~~~~~~~~~~~~~~~
|
|
44
|
+
|
|
45
|
+
Minke could always use more documentation, whether as part of the
|
|
46
|
+
official Minke docs, in docstrings, or even on the web in blog posts,
|
|
47
|
+
articles, and such.
|
|
48
|
+
|
|
49
|
+
Submit Feedback
|
|
50
|
+
~~~~~~~~~~~~~~~
|
|
51
|
+
|
|
52
|
+
The best way to send feedback is to file an issue at https://github.com/transientlunatic/minke/issues.
|
|
53
|
+
|
|
54
|
+
If you are proposing a feature:
|
|
55
|
+
|
|
56
|
+
* Explain in detail how it would work.
|
|
57
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
58
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
59
|
+
are welcome :)
|
|
60
|
+
|
|
61
|
+
Get Started!
|
|
62
|
+
------------
|
|
63
|
+
|
|
64
|
+
Ready to contribute? Here's how to set up `minke` for local development.
|
|
65
|
+
|
|
66
|
+
1. Fork the `minke` repo on GitHub.
|
|
67
|
+
2. Clone your fork locally::
|
|
68
|
+
|
|
69
|
+
$ git clone git@github.com:your_name_here/minke.git
|
|
70
|
+
|
|
71
|
+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
|
|
72
|
+
|
|
73
|
+
$ mkvirtualenv minke
|
|
74
|
+
$ cd minke/
|
|
75
|
+
$ python setup.py develop
|
|
76
|
+
|
|
77
|
+
4. Create a branch for local development::
|
|
78
|
+
|
|
79
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
80
|
+
|
|
81
|
+
Now you can make your changes locally.
|
|
82
|
+
|
|
83
|
+
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
|
|
84
|
+
|
|
85
|
+
$ flake8 minke tests
|
|
86
|
+
$ python setup.py test
|
|
87
|
+
$ tox
|
|
88
|
+
|
|
89
|
+
To get flake8 and tox, just pip install them into your virtualenv.
|
|
90
|
+
|
|
91
|
+
6. Commit your changes and push your branch to GitHub::
|
|
92
|
+
|
|
93
|
+
$ git add .
|
|
94
|
+
$ git commit -m "Your detailed description of your changes."
|
|
95
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
96
|
+
|
|
97
|
+
7. Submit a pull request through the GitHub website.
|
|
98
|
+
|
|
99
|
+
Pull Request Guidelines
|
|
100
|
+
-----------------------
|
|
101
|
+
|
|
102
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
103
|
+
|
|
104
|
+
1. The pull request should include tests.
|
|
105
|
+
2. If the pull request adds functionality, the docs should be updated. Put
|
|
106
|
+
your new functionality into a function with a docstring, and add the
|
|
107
|
+
feature to the list in README.rst.
|
|
108
|
+
3. The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check
|
|
109
|
+
https://travis-ci.org/transientlunatic/minke/pull_requests
|
|
110
|
+
and make sure that the tests pass for all supported Python versions.
|
|
111
|
+
|
|
112
|
+
Tips
|
|
113
|
+
----
|
|
114
|
+
|
|
115
|
+
To run a subset of tests::
|
|
116
|
+
|
|
117
|
+
$ python -m unittest tests.test_minke
|
minke-2.0.0/HISTORY.rst
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=======
|
|
2
|
+
History
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
1.1.9 (2021-05-04)
|
|
6
|
+
------------------
|
|
7
|
+
|
|
8
|
+
* Corrects behaviour of numerical relativity waveforms in geometric units by incorporating the extraction radius.
|
|
9
|
+
|
|
10
|
+
1.1.6
|
|
11
|
+
-----
|
|
12
|
+
* Provisional Python 3.6 and 3.7 support.
|
|
13
|
+
|
|
14
|
+
1.1.5
|
|
15
|
+
-----
|
|
16
|
+
* Addition of provisional support for NR hyperbolic waveforms
|
|
17
|
+
* Removal of glue.segments dependency
|
|
18
|
+
|
|
19
|
+
1.1.4
|
|
20
|
+
-----
|
|
21
|
+
* Bug fix in frame creation for supernovae
|
|
22
|
+
|
|
23
|
+
1.1.3
|
|
24
|
+
-----
|
|
25
|
+
* Minor fixes to the documentation of the code.
|
|
26
|
+
|
|
27
|
+
1.1.2
|
|
28
|
+
-----
|
|
29
|
+
* Minor bug-fixes to improve Hardware injection support
|
|
30
|
+
|
|
31
|
+
1.1.1 (2018-03-27)
|
|
32
|
+
------------------
|
|
33
|
+
* Made a change to the package meta data to allow upload to PYPI.
|
|
34
|
+
|
|
35
|
+
1.1.0 (2018-03-27)
|
|
36
|
+
------------------
|
|
37
|
+
"Luce Bay"
|
|
38
|
+
|
|
39
|
+
* Added full support for hardware injection production
|
|
40
|
+
* Added Yakunin Supernova waveform family
|
|
41
|
+
* Added Ringdow waveform support
|
|
42
|
+
* Added support for all lscsoft table formats
|
|
43
|
+
* Added support for editing xml files
|
|
44
|
+
* Added support for String Cusp waveforms
|
|
45
|
+
|
|
46
|
+
1.0.1 (2017-01-23)
|
|
47
|
+
------------------
|
|
48
|
+
* Added provisional support for hardware injection production
|
|
49
|
+
|
|
50
|
+
1.0.0 (2016-09-14)
|
|
51
|
+
------------------
|
|
52
|
+
The Anniversary Update.
|
|
53
|
+
|
|
54
|
+
* ER10 and O2 Readiness
|
|
55
|
+
* Fully capable of producing supernova injections
|
|
56
|
+
* Fully capable of producing lalsimulation-burst waveforms
|
|
57
|
+
* Extensible interface for parameter distributions
|
|
58
|
+
|
|
59
|
+
0.1.0 (2016-3-14)
|
|
60
|
+
------------------
|
|
61
|
+
|
|
62
|
+
* First release on PyPI.
|