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
8c9e73a2
Commit
8c9e73a2
authored
Jan 14, 2019
by
Richard O'Shaughnessy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util_CleanILE.py: Modify join script to work correctly when distance field added.
parent
db6091ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
MonteCarloMarginalizeCode/Code/util_CleanILE.py
MonteCarloMarginalizeCode/Code/util_CleanILE.py
+8
-1
No files found.
MonteCarloMarginalizeCode/Code/util_CleanILE.py
View file @
8c9e73a2
...
...
@@ -22,6 +22,7 @@ data_at_intrinsic = {}
my_digits
=
5
# safety for high-SNR BNS
tides_on
=
False
distance_on
=
False
col_intrinsic
=
9
...
...
@@ -31,8 +32,12 @@ for fname in sys.argv[1:]:
for
line
in
data
:
line
=
np
.
around
(
line
,
decimals
=
my_digits
)
lambda1
=
lambda2
=
0
if
len
(
line
)
==
13
and
not
tides_on
:
# strip lines with the wrong length
if
len
(
line
)
==
13
and
(
not
tides_on
)
and
(
not
distance_on
)
:
# strip lines with the wrong length
indx
,
m1
,
m2
,
s1x
,
s1y
,
s1z
,
s2x
,
s2y
,
s2z
,
lnL
,
sigmaOverL
,
ntot
,
neff
=
line
elif
len
(
line
)
==
14
:
distance_on
=
True
col_intrinsic
=
10
indx
,
m1
,
m2
,
s1x
,
s1y
,
s1z
,
s2x
,
s2y
,
s2z
,
dist
,
lnL
,
sigmaOverL
,
ntot
,
neff
=
line
elif
len
(
line
)
==
15
:
tides_on
=
True
col_intrinsic
=
11
...
...
@@ -57,5 +62,7 @@ for key in data_at_intrinsic:
if
tides_on
:
print
-
1
,
key
[
0
],
key
[
1
],
key
[
2
],
key
[
3
],
key
[
4
],
key
[
5
],
key
[
6
],
key
[
7
],
key
[
8
],
key
[
9
],
lnLmeanMinusLmax
+
lnLmax
,
sigmaNetOverL
,
np
.
sum
(
ntot
),
-
1
elif
distance_on
:
print
-
1
,
key
[
0
],
key
[
1
],
key
[
2
],
key
[
3
],
key
[
4
],
key
[
5
],
key
[
6
],
key
[
7
],
key
[
8
],
lnLmeanMinusLmax
+
lnLmax
,
sigmaNetOverL
,
np
.
sum
(
ntot
),
-
1
else
:
print
-
1
,
key
[
0
],
key
[
1
],
key
[
2
],
key
[
3
],
key
[
4
],
key
[
5
],
key
[
6
],
key
[
7
],
lnLmeanMinusLmax
+
lnLmax
,
sigmaNetOverL
,
np
.
sum
(
ntot
),
-
1
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