Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RDStackingProject
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Yifan Wang
RDStackingProject
Commits
4a4fa608
Commit
4a4fa608
authored
4 years ago
by
Rayne Liu
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some bugs
parent
27479b6c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/NR_Interpolate-0001_t_10M.py
+5
-3
5 additions, 3 deletions
code/NR_Interpolate-0001_t_10M.py
code/condor_submit_Interpolate0001_t_10M.sub
+1
-1
1 addition, 1 deletion
code/condor_submit_Interpolate0001_t_10M.sub
with
6 additions
and
4 deletions
code/NR_Interpolate-0001_t_10M.py
+
5
−
3
View file @
4a4fa608
...
...
@@ -10,6 +10,8 @@
import
numpy
as
np
from
scipy
import
interpolate
import
corner
import
os
os
.
environ
[
'
MPLCONFIGDIR
'
]
=
'
/home/rayne.liu/.config/matplotlib
'
import
matplotlib.pyplot
as
plt
from
matplotlib.ticker
import
MaxNLocator
from
matplotlib
import
rc
...
...
@@ -130,7 +132,7 @@ plt.plot(timespan_new, gwdatanew_re, "b", alpha=0.3, lw=2, label='After_re')
plt
.
plot
(
timespan
,
gwdata_im
,
alpha
=
0.3
,
lw
=
2
,
label
=
'
Before_im
'
)
plt
.
plot
(
timespan_new
,
gwdatanew_im
,
alpha
=
0.3
,
lw
=
2
,
label
=
'
After_im
'
)
plt
.
legend
()
figtest
.
savefig
(
rootpath
+
'
/plotsmc/001_interpolated_datatest.png
'
,
format
=
'
png
'
,
bbox_inches
=
'
tight
'
,
dpi
=
300
)
figtest
.
savefig
(
rootpath
+
'
/plotsmc/00
0
1_interpolated_datatest.png
'
,
format
=
'
png
'
,
bbox_inches
=
'
tight
'
,
dpi
=
300
)
# ### Now the interpolation seems nice according to what we have above...let's start sampling!
...
...
@@ -207,7 +209,7 @@ def log_probability(theta):
pool
=
choose_pool
(
1
)
pool
.
size
=
1
np
.
random
.
seed
(
42
)
pos
=
np
.
array
([
random
.
uniform
(
-
0.02
,
0.02
),
random
.
uniform
(
-
0.1
,
0.15
),
random
.
uniform
(
-
0.2
.
,
0.08
),
random
.
uniform
(
0.
,
1.
),
random
.
uniform
(
0.4
,
0.8
),
random
.
uniform
(
0.5
,
1.
),
random
.
uniform
(
0.5
,
0.6
),
random
.
uniform
(
0.5
,
0.6
)])
pos
=
np
.
array
([
random
.
uniform
(
-
0.02
,
0.02
),
random
.
uniform
(
-
0.1
,
0.15
),
random
.
uniform
(
-
0.2
,
0.08
),
random
.
uniform
(
0.
,
1.
),
random
.
uniform
(
0.4
,
0.8
),
random
.
uniform
(
0.5
,
1.
),
random
.
uniform
(
0.5
,
0.6
),
random
.
uniform
(
0.5
,
0.6
)])
pos
=
list
(
pos
)
pos
+=
1e-5
*
np
.
random
.
randn
(
ntemps
,
nwalkers
,
ndim
)
sampler
=
ptemcee
.
Sampler
(
nwalkers
,
ndim
,
log_likelihood
,
log_prior
,
ntemps
=
ntemps
,
pool
=
pool
)
...
...
This diff is collapsed.
Click to expand it.
code/condor_submit_Interpolate0001_t_10M.sub
+
1
−
1
View file @
4a4fa608
...
...
@@ -12,7 +12,7 @@ initialdir = .
notify_user = rl746@cornell.edu
notification = Complete
arguments = "-processid $(Process)"
request_memory =
128
GB
request_memory =
64
GB
request_cpus = 1
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty
...
...
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