Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
lalsuite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
108
Issues
108
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
28
Merge Requests
28
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
lalsuite
Commits
c2c73bd2
Commit
c2c73bd2
authored
Jul 25, 2018
by
Salvatore Vitale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed phiJL calculation in bppu
parent
135dc8ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
pylal/pylal/bayespputils.py
pylal/pylal/bayespputils.py
+9
-8
No files found.
pylal/pylal/bayespputils.py
View file @
c2c73bd2
...
...
@@ -2063,14 +2063,15 @@ class Posterior(object):
# J should now be || z and L should have a azimuthal angle phi_jl
phi_jl
=
np
.
arctan2
(
L
[
1
],
L
[
0
])
phi_jl
=
np
.
pi
-
phi_jl
spins
[
'phi_jl'
]
=
phi_jl
# bring L in the Z-X plane, with negative x
J
=
ROTATEZ
(
phi_jl
,
J
[
0
],
J
[
1
],
J
[
2
])
L
=
ROTATEZ
(
phi_jl
,
L
[
0
],
L
[
1
],
L
[
2
])
S1
=
ROTATEZ
(
phi_jl
,
S1
[
0
],
S1
[
1
],
S1
[
2
])
S2
=
ROTATEZ
(
phi_jl
,
S2
[
0
],
S2
[
1
],
S2
[
2
])
## This np.pi is here below because we are in a frame where N is in the positive XZ plane
# But phi_jl is the polar angle in a frame where N is in the *negative* XZ plane
spins
[
'phi_jl'
]
=
np
.
pi
+
phi_jl
# bring L in the Z-X plane, with *negative* x
J
=
ROTATEZ
(
np
.
pi
-
phi_jl
,
J
[
0
],
J
[
1
],
J
[
2
])
L
=
ROTATEZ
(
np
.
pi
-
phi_jl
,
L
[
0
],
L
[
1
],
L
[
2
])
S1
=
ROTATEZ
(
np
.
pi
-
phi_jl
,
S1
[
0
],
S1
[
1
],
S1
[
2
])
S2
=
ROTATEZ
(
np
.
pi
-
phi_jl
,
S2
[
0
],
S2
[
1
],
S2
[
2
])
theta0
=
array_polar_ang
(
L
)
J
=
ROTATEY
(
theta0
,
J
[
0
],
J
[
1
],
J
[
2
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment