Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rayne Liu
RDStackingProject
Commits
8ff28b3a
Commit
8ff28b3a
authored
Sep 16, 2020
by
Rayne Liu
Browse files
Update ran codes
parent
2e343424
Changes
2
Hide whitespace changes
Inline
Side-by-side
code/Is_it_inherent.py
100644 → 100755
View file @
8ff28b3a
#!/usr/bin/env python
# coding: utf-8
"""
What happens if I increase the number density of points in the GW signal, for the n=1 mode fitting the n=1 data?
...
...
@@ -16,9 +18,9 @@ import h5py
import
json
#This cell mimicks the (2, 2, 0) and (2, 2, 1) superposition, using the 0.01 stepsize
tstep
=
1
tstep
=
0.0
1
ndim
=
8
rootpath
=
"/Users/RayneLiu/git/rdstackingproject"
rootpath
=
'/work/rayne.liu/git/rdstackingproject'
#
"/Users/RayneLiu/git/rdstackingproject"
t
=
np
.
arange
(
0
,
80
,
tstep
)
w0
,
tau0
,
x0
,
y0
=
[
0.55578191
,
11.74090006
,
0.98213669
,
-
4.81250993
]
...
...
@@ -90,4 +92,4 @@ fg, ax = dyplot.cornerplot(res, color='red',
show_titles
=
True
,
labels
=
paramlabels
,
quantiles
=
None
)
fg
.
savefig
(
rootpath
+
'/plotsmc/n=1_mockfit_tstep='
+
str
(
tstep
)
+
'.png'
,
format
=
'png'
,
bbox_inches
=
'tight'
,
dpi
=
300
)
\ No newline at end of file
fg
.
savefig
(
rootpath
+
'/plotsmc/n=1_mockfit_tstep='
+
str
(
tstep
)
+
'.png'
,
format
=
'png'
,
bbox_inches
=
'tight'
,
dpi
=
300
)
code/Is_it_inherent_wandt.py
100644 → 100755
View file @
8ff28b3a
...
...
@@ -18,7 +18,7 @@ import h5py
import
json
#This cell mimicks the (2, 2, 0) and (2, 2, 1) superposition, using the 0.01 stepsize
tstep
=
1
tstep
=
0.0
1
ndim
=
8
rootpath
=
'/work/rayne.liu/git/rdstackingproject'
#"/Users/RayneLiu/git/rdstackingproject"
...
...
@@ -87,4 +87,4 @@ fg, ax = dyplot.cornerplot(res, color='blue',
show_titles
=
True
,
labels
=
paramlabels
,
quantiles
=
None
)
fg
.
savefig
(
rootpath
+
'/plotsmc/n=1_mockfit_tstep='
+
str
(
tstep
)
+
'wandt.png'
,
format
=
'png'
,
bbox_inches
=
'tight'
,
dpi
=
300
)
\ No newline at end of file
fg
.
savefig
(
rootpath
+
'/plotsmc/n=1_mockfit_tstep='
+
str
(
tstep
)
+
'wandt.png'
,
format
=
'png'
,
bbox_inches
=
'tight'
,
dpi
=
300
)
Write
Preview
Supports
Markdown
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