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
2ecb3655
There was a problem fetching the pipeline summary.
Commit
2ecb3655
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into change_sampled_parameters
parents
4df29f1d
04de105a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!31
Change sampled parameters
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tupak/sampler.py
+0
-1
0 additions, 1 deletion
tupak/sampler.py
tupak/utils.py
+15
-14
15 additions, 14 deletions
tupak/utils.py
with
15 additions
and
15 deletions
tupak/sampler.py
+
0
−
1
View file @
2ecb3655
...
...
@@ -138,7 +138,6 @@ class Sampler(object):
self
.
__search_parameter_keys
]
result
.
label
=
self
.
label
result
.
outdir
=
self
.
outdir
result
.
priors
=
self
.
priors
result
.
kwargs
=
self
.
kwargs
return
result
...
...
This diff is collapsed.
Click to expand it.
tupak/utils.py
+
15
−
14
View file @
2ecb3655
...
...
@@ -246,23 +246,24 @@ def get_polarization_tensor(ra, dec, time, psi, mode):
v
=
np
.
array
([
-
np
.
sin
(
phi
),
np
.
cos
(
phi
),
0
])
m
=
-
u
*
np
.
sin
(
psi
)
-
v
*
np
.
cos
(
psi
)
n
=
-
u
*
np
.
cos
(
psi
)
+
v
*
np
.
sin
(
psi
)
omega
=
np
.
cross
(
m
,
n
)
polarization_tensors
=
{
"
plus
"
:
np
.
einsum
(
'
i,j->ij
'
,
m
,
m
)
-
np
.
einsum
(
'
i,j->ij
'
,
n
,
n
),
"
cross
"
:
np
.
einsum
(
'
i,j->ij
'
,
m
,
n
)
+
np
.
einsum
(
'
i,j->ij
'
,
n
,
m
),
"
breathing
"
:
np
.
einsum
(
'
i,j->ij
'
,
m
,
m
)
+
np
.
einsum
(
'
i,j->ij
'
,
n
,
n
),
"
longitudinal
"
:
np
.
sqrt
(
2
)
*
np
.
einsum
(
'
i,j->ij
'
,
omega
,
omega
),
"
x
"
:
np
.
einsum
(
'
i,j->ij
'
,
m
,
omega
)
+
np
.
einsum
(
'
i,j->ij
'
,
omega
,
m
),
"
y
"
:
np
.
einsum
(
'
i,j->ij
'
,
n
,
omega
)
+
np
.
einsum
(
'
i,j->ij
'
,
omega
,
n
)
}
if
mode
in
polarization_tensors
.
keys
():
polarization_tensor
=
polarization_tensors
[
mode
]
if
mode
.
lower
()
==
'
plus
'
:
return
np
.
einsum
(
'
i,j->ij
'
,
m
,
m
)
-
np
.
einsum
(
'
i,j->ij
'
,
n
,
n
)
elif
mode
.
lower
()
==
'
cross
'
:
return
np
.
einsum
(
'
i,j->ij
'
,
m
,
n
)
+
np
.
einsum
(
'
i,j->ij
'
,
n
,
m
)
elif
mode
.
lower
()
==
'
breathing
'
:
return
np
.
einsum
(
'
i,j->ij
'
,
m
,
m
)
+
np
.
einsum
(
'
i,j->ij
'
,
n
,
n
)
omega
=
np
.
cross
(
m
,
n
)
if
mode
.
lower
()
==
'
longitudinal
'
:
return
np
.
sqrt
(
2
)
*
np
.
einsum
(
'
i,j->ij
'
,
omega
,
omega
)
elif
mode
.
lower
()
==
'
x
'
:
return
np
.
einsum
(
'
i,j->ij
'
,
m
,
omega
)
+
np
.
einsum
(
'
i,j->ij
'
,
omega
,
m
)
elif
mode
.
lower
()
==
'
y
'
:
return
np
.
einsum
(
'
i,j->ij
'
,
n
,
omega
)
+
np
.
einsum
(
'
i,j->ij
'
,
omega
,
n
)
else
:
logging
.
warning
(
"
{} not a polarization mode!
"
.
format
(
mode
))
polarization_tensor
=
None
return
polarization_tensor
return
None
def
get_vertex_position_geocentric
(
latitude
,
longitude
,
elevation
):
...
...
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