Skip to content

Commit 82a8353

Browse files
Merge branch 'master' of github.com:transientlunatic/heron
2 parents 49bea09 + aee176a commit 82a8353

8 files changed

Lines changed: 11 additions & 214 deletions

File tree

.github/workflows/review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17-
- name: Set up Python 3.8
17+
- name: Set up Python 3.10
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.8
20+
python-version: "3.10"
2121

2222
- name: Install dependencies
2323
run: |

heron/models/lalsimulation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,15 @@ def time_domain(self, parameters, times=None):
168168
spl_hx = CubicSpline(times_wf, hx.data.data)
169169
hp_data = spl_hp(times)
170170
hx_data = spl_hx(times)
171-
hp_ts = Waveform(data=hp_data, times=times + epoch)
172-
hx_ts = Waveform(data=hx_data, times=times + epoch)
171+
hp_ts = Waveform(data=hp_data, times=times)
172+
hx_ts = Waveform(data=hx_data, times=times)
173173
parameters.pop("time")
174174

175175
else:
176176
hp_data = hp.data.data
177177
hx_data = hx.data.data
178178
hp_ts = Waveform(data=hp_data, dt=hp.deltaT, t0=hp.epoch + epoch)
179179
hx_ts = Waveform(data=hx_data, dt=hx.deltaT, t0=hx.epoch + epoch)
180-
181180
self._cache = WaveformDict(parameters=parameters, plus=hp_ts, cross=hx_ts)
182181
return self._cache
183182

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
matplotlib==3.9.3
2-
numpy==2.2.0
1+
matplotlib
2+
numpy>=2.2.0
33
bilby
44
scipy
55
progressbar
@@ -17,7 +17,7 @@ asimov
1717
pesummary
1818
nessai
1919
elk-waveform
20-
gpytorch==1.0.1
21-
torch==2.5.1
22-
torchvision==0.5.0
20+
gpytorch>=1.0.1
21+
torch>=2.5.1
22+
torchvision>=0.5.0
2323
bilby_pipe

tests/test_inference_uncertain.py

Lines changed: 0 additions & 114 deletions
This file was deleted.

tests/test_injection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def setUp(self):
4343
def test_simple_inject(self):
4444
make_injection(waveform=IMRPhenomPv2,
4545
injection_parameters={"mass_ratio": 0.6,
46+
"gpstime": 1000,
4647
"total_mass": 60 * u.solMass},
4748
detectors={"AdvancedLIGOHanford": "AdvancedLIGO"}
4849
)
@@ -51,6 +52,7 @@ def test_simple_inject(self):
5152
def test_multiple_inject(self):
5253
make_injection(waveform=IMRPhenomPv2,
5354
injection_parameters={"mass_ratio": 0.6,
55+
"gpstime": 1000,
5456
"total_mass": 60 * u.solMass},
5557
detectors={"AdvancedLIGOHanford": "AdvancedLIGO",
5658
"AdvancedLIGOLivingston": "AdvancedLIGO"},

tests/test_noise.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/test_sampling.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

tests/test_td_likelihood.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def setUp(self):
105105
)
106106

107107
def test_evaluate(self):
108-
109108
likelihoods = []
110109
for w in np.linspace(0.01, 0.19, 100):
111110

0 commit comments

Comments
 (0)