Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
research-projects-RIT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard O'Shaughnessy
research-projects-RIT
Commits
b125ad34
Commit
b125ad34
authored
Jan 12, 2019
by
Richard O'Shaughnessy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIP: Modify to allow distance fitting
parent
69edd2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MonteCarloMarginalizeCode/Code/util_ConstructIntrinsicPosterior_GenericCoordinates.py
...de/util_ConstructIntrinsicPosterior_GenericCoordinates.py
+7
-1
No files found.
MonteCarloMarginalizeCode/Code/util_ConstructIntrinsicPosterior_GenericCoordinates.py
View file @
b125ad34
...
...
@@ -175,7 +175,8 @@ def add_field(a, descr):
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"--fname"
,
help
=
"filename of *.dat file [standard ILE output]"
)
parser
.
add_argument
(
"--input-tides"
,
action
=
'store_true'
,
help
=
"Use input format with tidal fields included."
)
parser
.
add_argument
(
"--input-tides"
,
action
=
'store_true'
,
help
=
"Use input format with tidal fields included."
)
parser
.
add_argument
(
"--input-distance"
,
action
=
'store_true'
,
help
=
"Use input format with distance fields (but not tidal fields?) enabled."
)
parser
.
add_argument
(
"--fname-lalinference"
,
help
=
"filename of posterior_samples.dat file [standard LI output], to overlay on corner plots"
)
parser
.
add_argument
(
"--fname-output-samples"
,
default
=
"output-ILE-samples"
,
help
=
"output posterior samples (default output-ILE-samples -> output-ILE)"
)
parser
.
add_argument
(
"--fname-output-integral"
,
default
=
"integral_result"
,
help
=
"output filename for integral result. Postfixes appended"
)
...
...
@@ -924,6 +925,9 @@ col_lnL = 9
if
opts
.
input_tides
:
print
" Tides input"
col_lnL
+=
2
if
opts
.
input_distance
:
print
" Distance input"
col_lnL
+=
1
dat_orig
=
dat
=
np
.
loadtxt
(
opts
.
fname
)
dat_orig
=
dat
[
dat
[:,
col_lnL
].
argsort
()]
# sort http://stackoverflow.com/questions/2828059/sorting-arrays-in-numpy-by-column
print
" Original data size = "
,
len
(
dat
),
dat
.
shape
...
...
@@ -994,6 +998,8 @@ for line in dat:
if
opts
.
input_tides
:
P
.
lambda1
=
line
[
9
]
P
.
lambda2
=
line
[
10
]
if
opts
.
input_distance
:
P
.
dist
=
lal
.
PC_SI
*
1e6
*
line
[
9
]
# Incompatible with tides, note!
# INPUT GRID: Evaluate binary parameters on fitting coordinates
line_out
=
np
.
zeros
(
len
(
coord_names
)
+
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