Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Create v0.4 #4

Draft
wants to merge 349 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
cd040a2
Fix bug with None.
transientlunatic Aug 7, 2023
38f0f36
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Aug 7, 2023
8fb635c
Remove alignment code
transientlunatic Aug 7, 2023
8d3f5c9
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Aug 7, 2023
c3effc7
Remove more alignment code.
transientlunatic Aug 7, 2023
06aa8e4
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Aug 7, 2023
8bc08d2
Remove even more alignment
transientlunatic Aug 7, 2023
de14f32
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Aug 7, 2023
f71b05c
Updates to the location of the report.
transientlunatic Aug 18, 2023
36eda32
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Aug 18, 2023
82c567a
Attempt to fix template pickup
transientlunatic Aug 18, 2023
32790c4
Some quality of life improvements.
transientlunatic Aug 21, 2023
52bc8d3
Resolve merge.
transientlunatic Aug 21, 2023
b93c108
Small updates to allow prior handling.
transientlunatic Sep 6, 2023
3f4eef9
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Sep 6, 2023
de60919
Updates to template.
transientlunatic Sep 6, 2023
566471c
Further template updates.
transientlunatic Sep 6, 2023
a618041
Fixed missing endif
transientlunatic Sep 6, 2023
d49bde1
Update the bounds
transientlunatic Sep 6, 2023
7f37ab0
Fix indent
transientlunatic Sep 6, 2023
8d63216
Add helpful print
transientlunatic Sep 6, 2023
ec0051d
Bug hunting in sampling code.
transientlunatic Sep 6, 2023
9e41090
Added initial join detector support.
transientlunatic Sep 7, 2023
118ae1d
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Sep 7, 2023
9ce42be
Fix
transientlunatic Sep 7, 2023
e5eb965
Fix typos
transientlunatic Sep 7, 2023
961dcd9
Update joint_like
transientlunatic Sep 7, 2023
4a1d07e
Some updates to inference and injections.
transientlunatic Sep 12, 2023
1422a0b
Fixed inerence bug
transientlunatic Sep 12, 2023
33654b2
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Sep 12, 2023
b4a46e5
Remove noise model from template if not in ledger.
transientlunatic Sep 13, 2023
fff7bab
Fix for plotting.
transientlunatic Sep 13, 2023
4f78506
Fix PSD.
transientlunatic Sep 13, 2023
a7bf854
Fix to sample rate.
transientlunatic Sep 13, 2023
0077540
Another bug fix.
transientlunatic Sep 13, 2023
ed16029
Fix PSD
transientlunatic Sep 13, 2023
597c096
Another PSD fix.
transientlunatic Sep 13, 2023
9e8efb0
Added results discovery and hopefully postprocessing.
transientlunatic Sep 13, 2023
b8a1a45
More fixes to job compleation detection.
transientlunatic Sep 13, 2023
6d61345
More tidying and fixing.
transientlunatic Sep 13, 2023
d82ee47
Return list
transientlunatic Sep 13, 2023
423bc57
Skip making the datfile if it exists already
transientlunatic Sep 13, 2023
1a08848
Fix typo
transientlunatic Sep 13, 2023
8cf71c1
Updates to template.
transientlunatic Sep 13, 2023
38a7471
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Sep 13, 2023
0823a78
Merge branch 'likelihood-update' of git.ligo.org:daniel-williams/hero…
transientlunatic Sep 13, 2023
b3b4d24
Started adding logging messages
transientlunatic Sep 18, 2023
a3abf7d
Added correct import.
transientlunatic Sep 18, 2023
51c69a9
More logging updates.
transientlunatic Sep 18, 2023
a030068
Tidying-up
transientlunatic Sep 18, 2023
ecb2435
Change filtering to filtfilt
transientlunatic Sep 18, 2023
51f3ac1
Temporarily back to filt to prevent negative stride issue
transientlunatic Sep 18, 2023
d80fc89
Updates to fix issue with detectors in the likelihood.
transientlunatic Sep 19, 2023
48d1e66
Added GW module.
transientlunatic Sep 19, 2023
d97145f
Moved injection infrastructure to independent script.
transientlunatic Sep 20, 2023
34d6f33
Add theta_jn parameter to the waveform.
transientlunatic Sep 26, 2023
e0c4029
Update template to add theta_jn prior.
transientlunatic Sep 26, 2023
ea46943
Updated to improve metapipeline.
transientlunatic Sep 26, 2023
0251af0
More fixes to the metapiple
transientlunatic Sep 26, 2023
d5138ae
Change command to arguments
transientlunatic Sep 26, 2023
6c8e2ea
Correct torch issue
transientlunatic Sep 26, 2023
239debc
Fix location of outputs
transientlunatic Sep 26, 2023
6539699
Updates to handling of phi0 and inclination
transientlunatic Oct 10, 2023
2db7736
Added a default phase angle
transientlunatic Oct 10, 2023
dccf716
Updated the heron template
transientlunatic Oct 10, 2023
53ce0f1
Fixes to bring heron in line with other samplers
transientlunatic Oct 10, 2023
6706d89
More updates.
transientlunatic Oct 10, 2023
e7ee5a5
Updated the variance calculations to make them easier to follow.
transientlunatic Nov 17, 2023
44a517d
Merge branch 'likelihood-update' into v0.4-preview
transientlunatic Nov 17, 2023
730e14b
Merge tag 'v0.4.0-alpha2' of git.ligo.org:daniel-williams/heron into …
transientlunatic Nov 17, 2023
8fb87a4
Minor fix to pick up data correctly.
transientlunatic Nov 17, 2023
7674af4
Some updates to logging to try and get to the bottom of a bug
transientlunatic Nov 20, 2023
a0816dc
Merge branch 'v0.4-preview' of git.ligo.org:daniel-williams/heron int…
transientlunatic Nov 20, 2023
2a17412
Changes to the noise fudge handling
transientlunatic Nov 20, 2023
9c92039
Fix bad newline
transientlunatic Nov 20, 2023
e577287
Merge branch 'v0.4-preview' of git.ligo.org:daniel-williams/heron int…
transientlunatic Nov 20, 2023
a366988
Merge branch 'v0.4-preview' of git.ligo.org:daniel-williams/heron int…
transientlunatic Nov 20, 2023
aa825e6
More fixes to the noise distribution.
transientlunatic Nov 21, 2023
3be9296
Let noise be configurable again.
transientlunatic Nov 21, 2023
1003f31
Merge branch 'v0.4-preview' of git.ligo.org:daniel-williams/heron int…
transientlunatic Nov 21, 2023
9f3cc9e
Committing the working version.
transientlunatic Nov 27, 2023
ac677c2
Copy training data to worker node.
transientlunatic Nov 27, 2023
3dce9d4
Renamed theta_jn to "theta_jn"
transientlunatic Nov 27, 2023
e883550
Updated completion detection
transientlunatic Nov 27, 2023
080eeae
Updated pipeline interface for asimov
transientlunatic Nov 27, 2023
38a05e3
Handle job completion better
transientlunatic Nov 27, 2023
efbcdbe
Update PSD discovery
transientlunatic Nov 27, 2023
80ef79c
Fixed infuriating typo.
transientlunatic Nov 27, 2023
96e293a
Updates to injection infrastructure.
transientlunatic Jan 23, 2024
26c815f
Updated the default template to include PSD information
transientlunatic Jan 22, 2024
1ee1522
Started rewrite of likelihood and inner products.
transientlunatic Feb 5, 2024
cedc2f0
Added new tests, updated the likelihood function.
transientlunatic Feb 15, 2024
2e253cb
Further updates to the likelihood function.
transientlunatic Feb 19, 2024
1740978
Merge tag 'v0.4.0-alpha4' of git.ligo.org:daniel-williams/heron into …
transientlunatic Feb 20, 2024
0908a88
More template fixes.
transientlunatic Mar 4, 2024
f52cdcc
Minor fixes.
transientlunatic Mar 18, 2024
48f903b
Update to allow sampling over new parameters.
transientlunatic Apr 11, 2024
6aed056
Updated the template.
transientlunatic Apr 11, 2024
4706c27
Fix some typos.
transientlunatic Apr 12, 2024
f9df848
Fix flake8-identified mistake in CUDALikelihood
transientlunatic Apr 12, 2024
0d13648
Update the lalinference waveform to allow times to be passed.
transientlunatic Apr 12, 2024
0901547
Add click to requirements
transientlunatic Apr 12, 2024
2661adc
Add asimov as a requirement
transientlunatic Apr 12, 2024
c876b7c
Make models pickleable
johnveitch Apr 12, 2024
e975e9a
Merge branch 'pickled_datawrapper' into 'v0.4-preview'
transientlunatic Apr 12, 2024
644d494
Added PESummary as a requirement.
transientlunatic Apr 15, 2024
7dc09c3
Merge branch 'add-lalsimulation-inference' into 'v0.4-preview'
transientlunatic Apr 15, 2024
5417b4e
Wiping the slate
transientlunatic Apr 15, 2024
26cda9c
Remove old tests
transientlunatic Apr 15, 2024
caacdd9
Remove all the old models.
transientlunatic Apr 15, 2024
1939e63
Remove the old training data.
transientlunatic Apr 15, 2024
68025b0
Started to write new waveforms interface to LALSimulation.
transientlunatic Apr 15, 2024
44eb158
More updates to the training data generator
transientlunatic Apr 15, 2024
84f3fae
A number of small changes which cna now make waveforms.
transientlunatic Apr 17, 2024
1df3c53
Add ability to generate noise from a lalsimulation noise PSD.
transientlunatic Apr 17, 2024
13f4cd9
Add a new heron TimeSeries class.
transientlunatic Apr 19, 2024
95830ff
Add ability to make injections.
transientlunatic Apr 30, 2024
c9dbee0
Added lal wrappers.
transientlunatic Apr 30, 2024
2c47fd1
Updated to allow likelihood calculation.
transientlunatic May 13, 2024
59e60f2
Addition of CLI.
transientlunatic May 17, 2024
932f389
Tests and modifications to allow cuda support.
transientlunatic May 17, 2024
b5ca189
[lint] Linted the code with black.
transientlunatic May 17, 2024
b4c6223
Fixes to allow flake8 to pass
transientlunatic May 17, 2024
6923479
Various fixes for tests.
transientlunatic May 17, 2024
f00904f
Added bilby as a requirement.
transientlunatic May 17, 2024
49d7d84
Add support for azimuth/zenith coordinates.
transientlunatic May 17, 2024
e76c1ab
Added files I'd forgotten to add.
transientlunatic May 17, 2024
e6abd8e
Add nessai as a requirement
transientlunatic May 17, 2024
0dabf28
Updates
transientlunatic May 21, 2024
5b58670
Add a spec file for conda.
transientlunatic May 21, 2024
d024947
Fix missing colon.
transientlunatic May 21, 2024
cdb654f
Allowed test discovery in subdirectories.
transientlunatic May 21, 2024
6e865f5
Further updates to the priors for sampling.
transientlunatic May 23, 2024
eb6d6c5
Fix an issue with units in the padding.
transientlunatic May 24, 2024
c46da6d
More debugging.
transientlunatic May 28, 2024
f52c64b
Prevent incorrect shifting behaviour.
transientlunatic May 28, 2024
4a8bfdc
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic May 28, 2024
985c858
More work on inference debugging.
transientlunatic May 28, 2024
3d38b04
Added new checks for luminosity distance
transientlunatic May 28, 2024
b853ead
Fix logger.
transientlunatic May 28, 2024
7d75595
Added logging to sampling imports.
transientlunatic May 28, 2024
58f8b83
More edits to sampling£
transientlunatic May 28, 2024
a7b81e9
Updates to likelihood.
transientlunatic May 31, 2024
be815d2
Many updates to tidy up the likelihoods.
transientlunatic Jun 10, 2024
4f4df28
Updates
transientlunatic Jun 11, 2024
c8f9382
Attempts to fix some sampling problems.
transientlunatic Jun 12, 2024
67f3244
Updates to the inference code
transientlunatic Jun 20, 2024
03b1058
Updates to the likelihood function.
transientlunatic Jun 21, 2024
a1f6814
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jun 21, 2024
997d3f9
Fix bug in conventional likelihood.
transientlunatic Jun 24, 2024
c981fa1
Attempt to fix normal normalisation
transientlunatic Jun 24, 2024
1d241c4
More bugs
transientlunatic Jun 24, 2024
32fc0f9
Updates to the likelihood normalisations.
transientlunatic Jun 26, 2024
e875dcf
Allow flow class to be specified
transientlunatic Jun 26, 2024
34a2752
Make sampled outputs synchronise to cpu
transientlunatic Jun 26, 2024
83085e4
Add temporary config and condor
transientlunatic Jul 1, 2024
2763bc0
Fix noise timeseries.
transientlunatic Jul 1, 2024
cd82a49
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 1, 2024
710eba7
Update to allow other likelihoods.
transientlunatic Jul 1, 2024
84c5d47
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 1, 2024
c21980a
Add heron as a usable recovery waveform.
transientlunatic Jul 1, 2024
12c67b8
Fix waveform return
transientlunatic Jul 1, 2024
1722e19
Updates to likelihood
transientlunatic Jul 1, 2024
08b98da
More updates to likelihood
transientlunatic Jul 1, 2024
465ccea
Update waveform pass to likelihood
transientlunatic Jul 1, 2024
c20ebf3
Add gpstime to training data
transientlunatic Jul 1, 2024
8a6cb7a
More fix gpstime
transientlunatic Jul 1, 2024
31a85ce
Add list of parameters for heron
transientlunatic Jul 1, 2024
f4453d2
Fix time interface
transientlunatic Jul 1, 2024
19a70b9
More time fixes.
transientlunatic Jul 1, 2024
11df0c3
Sigh
transientlunatic Jul 1, 2024
9dd6624
We'll get there
transientlunatic Jul 1, 2024
8f33f1e
More time fixes.
transientlunatic Jul 1, 2024
cff108d
Updates
transientlunatic Jul 2, 2024
469351a
Updates to tests.
transientlunatic Jul 2, 2024
80bc94a
Inference update heron training
transientlunatic Jul 2, 2024
dabe244
Updates to fix two bottlenecks.
transientlunatic Jul 4, 2024
7f99506
Update
transientlunatic Jul 4, 2024
7575d25
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 4, 2024
5f86f26
Add geocent_time parameter
transientlunatic Jul 4, 2024
8cacda4
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 4, 2024
e3e6573
Remove bad inverse calculation.
transientlunatic Jul 8, 2024
fbc8be6
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 8, 2024
6cd5c41
Allow input parameters to be converted.
transientlunatic Jul 8, 2024
62c32df
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 8, 2024
01cd1d7
Update the sampling.
transientlunatic Jul 8, 2024
d976506
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 8, 2024
1a99648
Update the priors.
transientlunatic Jul 8, 2024
beb02d3
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 8, 2024
c4a9970
Add conversion for chirp mass
transientlunatic Jul 9, 2024
a8a33a3
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 9, 2024
f80c9aa
Small fixes to allow heron sampling again.
transientlunatic Jul 9, 2024
ee9746c
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 9, 2024
72fcf4e
Fix capitalisation
transientlunatic Jul 9, 2024
07abafa
Add unit conversion.
transientlunatic Jul 9, 2024
aa90987
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 9, 2024
b7cf5e6
Add profiling scripts.
transientlunatic Jul 22, 2024
885fa42
Merge branch 'total-rewrite' of git.ligo.org:daniel-williams/heron in…
transientlunatic Jul 22, 2024
2b68046
Updates to various parts of the GPU code.
transientlunatic Jul 23, 2024
5470490
Fix issues with waveforms
transientlunatic Aug 1, 2024
e8306f6
Merge branch 'working-gpr' into 'total-rewrite'
transientlunatic Aug 1, 2024
92e8943
Updates to the likelihood and a few other things.
transientlunatic Aug 1, 2024
1d17d47
Add profiling scripts back in.
transientlunatic Aug 1, 2024
c8cb117
Add prior conversion back.
transientlunatic Aug 5, 2024
357050f
Add zero-noise injection.
transientlunatic Aug 5, 2024
e8e9e3a
Fix calculation of masses from total and mass ratio
transientlunatic Aug 5, 2024
1cb68f5
Update mass conversion.
transientlunatic Aug 5, 2024
6498508
Corrected the name of the msun import
transientlunatic Aug 5, 2024
8754787
Change elifs to ifs.
transientlunatic Aug 5, 2024
2c48b18
Add tests for waveform checks.
transientlunatic Aug 12, 2024
22dce45
Merge branch 'total-rewrite' into 'master'
transientlunatic Aug 12, 2024
f241ec3
Commented out the torch likelihoods.
transientlunatic Aug 13, 2024
37386c6
Small quality of life improvements.
transientlunatic Aug 15, 2024
ca1392b
Fixed the lalnoise implementation.
transientlunatic Aug 16, 2024
1e7dbd9
Updates to inference tests.
transientlunatic Aug 16, 2024
fe12e3d
Attempts to fix snr test.
transientlunatic Aug 16, 2024
58e6e14
Reverted various changes which break the GPR construction again.
transientlunatic Aug 16, 2024
5fb79d0
Update the github actions.
transientlunatic Aug 16, 2024
379bb88
Add install requirements to test runner.
transientlunatic Aug 16, 2024
918d53f
Modify the docs build.
transientlunatic Aug 16, 2024
9a07570
Fixed waveform alignment in likelihood.
transientlunatic Aug 16, 2024
7f20b36
Fix location of logabsdet.
transientlunatic Aug 19, 2024
97590b7
Updated tests to ensure compatibility between torch and numpy
transientlunatic Aug 19, 2024
239503a
Merge pull request #5 from transientlunatic/tests-add-likelihood-rang…
transientlunatic Aug 19, 2024
f729525
Updated the profiling tests.
transientlunatic Aug 20, 2024
6d46060
Updated the profiling tests.
transientlunatic Aug 20, 2024
967ac4e
Add cuda likelihood test.
transientlunatic Aug 20, 2024
56eaba0
Moved cuda likelihood.
transientlunatic Aug 20, 2024
ea80a54
Merge branch 'v0.4-preview' into update-profiling
transientlunatic Aug 20, 2024
5bf0cdc
Merge pull request #6 from transientlunatic/update-profiling
transientlunatic Aug 20, 2024
eefa5ef
Further inference improvements.
transientlunatic Aug 22, 2024
69110f4
Added a new test for the numpy uncertainty likelihood.
transientlunatic Aug 22, 2024
8023c1e
Actually add the tests.
transientlunatic Aug 22, 2024
1389ebd
Merge branch 'v0.4-preview' into tests-add-likelihood-range-tests
transientlunatic Aug 22, 2024
d17257d
Merge pull request #25 from transientlunatic/tests-add-likelihood-ran…
transientlunatic Aug 22, 2024
e0da2a4
Added first tests of the CUDA likelihood.
transientlunatic Aug 23, 2024
651012d
Merge branch 'tests-add-likelihood-range-tests' of github.com:transie…
transientlunatic Aug 23, 2024
58ac10d
Update the tests so the cuda-requiring ones are skipped in CI
transientlunatic Aug 23, 2024
1601ad4
Merge pull request #26 from transientlunatic/tests-add-likelihood-ran…
transientlunatic Aug 23, 2024
55b3237
Update handling of mass ratio
transientlunatic Aug 26, 2024
7faf90a
Merge branch 'master' into update-conversions
transientlunatic Aug 26, 2024
a7f2b60
Merge pull request #28 from transientlunatic/update-conversions
transientlunatic Aug 26, 2024
1efcd4c
Add MSUN_SI
transientlunatic Aug 26, 2024
6d75253
Merge branch 'update-conversions' of github.com:transientlunatic/hero…
transientlunatic Aug 26, 2024
208750c
Merge pull request #29 from transientlunatic/update-conversions
transientlunatic Aug 26, 2024
07889ea
Added some bug fixes.
transientlunatic Sep 3, 2024
e17b9a2
Merge pull request #30 from transientlunatic/bug-fixes
transientlunatic Sep 3, 2024
f7df371
Move to internal timeseries
transientlunatic Oct 1, 2024
62ce6c1
Merge branch 'v0.4-preview' of github.com:transientlunatic/heron into…
transientlunatic Oct 1, 2024
377ecbb
Minor fix for GPStime in injection
transientlunatic Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
heron/_version.py export-subst
*.ipynb filter=jupyternotebook
37 changes: 37 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Documentation
on:
push:
branches:
- master
- v*-preview

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Build HTML Docs
run: |
sudo apt install pandoc
pip install sphinx sphinx-multiversion
pip install kentigern
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install .
cd docs
make html

- name: SCP Deploy HTML Docs
uses: horochx/[email protected]
with:
local: docs/_build/html/*
remote: /home/danwilliams/code.daniel-williams.co.uk/heron/${{ github.ref_name }}
host: ${{ secrets.sshhost }}
user: ${{ secrets.sshuser }}
key: ${{ secrets.sshkey }}
29 changes: 29 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests
on:
push:
branches:
- master
- v*-preview
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements_test.txt

- name: Run Tests
run: |
python -m unittest discover tests/
126 changes: 60 additions & 66 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
stages:
- analysis
- test
- science tests
- build
- deploy

image: python:3.6
image: python:3.9

include:
- template: Dependency-Scanning.gitlab-ci.yml

documentation-coverage:
stage: analysis
allow_failure: true
script:
- pip install docstr-coverage
- docstr-coverage -F 60.0 heron
coverage: '/Total coverage: (\d+\.\d+%)/'

pylint:
stage: analysis
Expand All @@ -22,47 +30,83 @@ flake8:
stage: analysis
allow_failure: false
before_script:
- pip install flake8
- pip install flake8 flake8_formatter_junit_xml
script:
- flake8 --count --select=E9,F63,F7,F82 --show-source --statistics heron/
- flake8 --count --select=E9,F63,F7,F82 --format junit-xml --verbose heron > report.xml
# exit-zero treats all errors as warnings.
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics heron/

test-python27:
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics heron/
artifacts:
reports:
junit: report.xml

test-python38:
stage: test
image: python:2.7
allow_failure: true
image: python:3.8
script:
- pip install numpy
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- python setup.py test

test-python36:
test-python39:
stage: test
image: python:3.6
image: python:3.9
before_script:
- pip install coverage unittest-xml-reporting
script:
- pip install numpy
- pip install -r requirements.txt
- python setup.py test
- pip install -r requirements_test.txt
- coverage run -m xmlrunner discover tests/ -o junit-reports
#- coverage report
#- coverage xml
# artifacts:
# when: always
# paths:
# - public/coverage.txt
# reports:
# junit: junit-reports/*
# coverage_report:
# coverage_format: cobertura
# path: coverage.xml
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'

test-python37:

test-python310:
stage: test
image: python:3.7
image: python:3.10
script:
- pip install numpy
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- python setup.py test

test-python38:
test-python311:
stage: test
image: python:3.8
image: python:3.11
script:
- pip install numpy
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- python setup.py test
allow_failure: True

####
# Science Tests
####

science-python39:
stage: science tests
image: python:3.9
script:
- pip install numpy
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- python -m unittest discover science-tests/
allow_failure: True

pages:
image: python:3.6
image: sphinxdoc/sphinx
stage: build
script:
- pip install numpy
Expand All @@ -76,53 +120,3 @@ pages:
- public
only:
- master
# Build receipe for standalone wheels on Linux
wheel-27:
image: python:2.7
stage: build
script:
- pip install wheel
# Build wheel
- python setup.py bdist_wheel --universal
dependencies: []
artifacts:
expire_in: 3h
paths:
- dist

wheel-36:
image: python:3.6
stage: build
script:
- pip install wheel
# Build wheel
- python setup.py bdist_wheel --universal
dependencies: []
artifacts:
expire_in: 3h
paths:
- dist

wheel-37:
image: python:3.7
stage: build
script:
- pip install wheel
# Build wheel
- python setup.py bdist_wheel --universal
dependencies: []
artifacts:
expire_in: 3h
paths:
- dist

deploy:wheel:
stage: deploy
script:
- pip install twine
- twine upload dist/*
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
if: '$CI_COMMIT_TAG'
when: on_success
- when: never
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ docs:
rm -f docs/modules.rst
sphinx-apidoc -o docs/ heron
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(MAKE) -C docs multihtml
$(BROWSER) docs/_build/html/index.html

servedocs: docs
Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
=====
Heron
=====

Expand Down
Loading
Loading