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
5396bfde
There was a problem fetching the pipeline summary.
Commit
5396bfde
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
make logic neater
parent
629f3048
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tupak/gw/detector.py
+4
-4
4 additions, 4 deletions
tupak/gw/detector.py
with
4 additions
and
4 deletions
tupak/gw/detector.py
+
4
−
4
View file @
5396bfde
...
...
@@ -163,14 +163,14 @@ class Interferometer(object):
@property
def
vertex
(
self
):
if
self
.
__vertex_updated
is
False
:
if
not
self
.
__vertex_updated
:
self
.
__vertex
=
tupak
.
gw
.
utils
.
get_vertex_position_geocentric
(
self
.
__latitude
,
self
.
__longitude
,
self
.
elevation
)
self
.
__vertex_updated
=
True
return
self
.
__vertex
@property
def
x
(
self
):
if
self
.
__x_updated
is
False
:
if
not
self
.
__x_updated
:
self
.
__x
=
self
.
unit_vector_along_arm
(
'
x
'
)
self
.
__x_updated
=
True
self
.
__detector_tensor_updated
=
False
...
...
@@ -178,7 +178,7 @@ class Interferometer(object):
@property
def
y
(
self
):
if
self
.
__y_updated
is
False
:
if
not
self
.
__y_updated
:
self
.
__y
=
self
.
unit_vector_along_arm
(
'
y
'
)
self
.
__y_updated
=
True
self
.
__detector_tensor_updated
=
False
...
...
@@ -191,7 +191,7 @@ class Interferometer(object):
See Eq. B6 of arXiv:gr-qc/0008066
"""
if
self
.
__detector_tensor_updated
is
False
:
if
not
self
.
__detector_tensor_updated
:
self
.
__detector_tensor
=
0.5
*
(
np
.
einsum
(
'
i,j->ij
'
,
self
.
x
,
self
.
x
)
-
np
.
einsum
(
'
i,j->ij
'
,
self
.
y
,
self
.
y
))
self
.
__detector_tensor_updated
=
True
return
self
.
__detector_tensor
...
...
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