Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
d51aaf63
There was a problem fetching the pipeline summary.
Commit
d51aaf63
authored
6 years ago
by
RorySmith
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.ligo.org:Monash/tupak
parents
95b761b7
567cf3da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/tests.py
+4
-7
4 additions, 7 deletions
test/tests.py
tupak/detector.py
+4
-4
4 additions, 4 deletions
tupak/detector.py
with
8 additions
and
11 deletions
test/tests.py
+
4
−
7
View file @
d51aaf63
...
...
@@ -60,12 +60,9 @@ class Test(unittest.TestCase):
result
=
tupak
.
sampler
.
run_sampler
(
likelihood
,
priors
,
sampler
=
'
nestle
'
,
verbose
=
False
,
npoints
=
100
)
#self.assertAlmostEqual(np.mean(result.samples), dL,
# delta=np.std(result.samples))
result
.
label
=
'
corner.png
'
result
.
outdir
=
'
./outdir
'
result
.
plot_corner
()
if
__name__
==
'
__main__
'
:
unittest
.
main
()
self
.
assertAlmostEqual
(
np
.
mean
(
result
.
samples
),
dL
,
delta
=
3
*
np
.
std
(
result
.
samples
))
if
__name__
==
'
__main__
'
:
unittest
.
main
()
This diff is collapsed.
Click to expand it.
tupak/detector.py
+
4
−
4
View file @
d51aaf63
...
...
@@ -240,11 +240,11 @@ class Interferometer(object):
time_shift
=
self
.
time_delay_from_geocenter
(
parameters
[
'
ra
'
],
parameters
[
'
dec
'
],
self
.
epoch
)
#
parameters['geocent_time'])
self
.
epoch
)
#
parameters['geocent_time'])
if
self
.
time_marginalization
:
dt
=
time_shift
# when marginalizing over time we only care about relative time shifts between detectors and marginalized over
# all candidate coalescence times
dt
=
time_shift
# when marginalizing over time we only care about relative time shifts between detectors and marginalized over
# all candidate coalescence times
else
:
dt
=
self
.
epoch
-
(
parameters
[
'
geocent_time
'
]
-
time_shift
)
...
...
@@ -543,7 +543,7 @@ def get_empty_interferometer(name):
minimum_frequency
=
40
,
maximum_frequency
=
2048
,
length
=
0.6
,
latitude
=
52
+
14.
/
60
+
42.528
/
3600
,
longitude
=
9
+
48.
/
60
+
25.894
/
3600
,
elevation
=
114.425
,
xarm_azimuth
=
115.9431
,
yarm_azimuth
=
21.6117
),
'
CE
'
:
Interferometer
(
name
=
'
CE
'
,
power_spectral_density
=
PowerSpectralDensity
(
'
CE_psd.txt
'
),
'
CE
'
:
Interferometer
(
name
=
'
CE
'
,
power_spectral_density
=
PowerSpectralDensity
(
psd_file
=
'
CE_psd.txt
'
),
minimum_frequency
=
10
,
maximum_frequency
=
2048
,
length
=
40
,
latitude
=
46
+
27.
/
60
+
18.528
/
3600
,
longitude
=-
(
119
+
24.
/
60
+
27.5657
/
3600
),
elevation
=
142.554
,
xarm_azimuth
=
125.9994
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment