Skip to content
Snippets Groups Projects
Commit 4a4fa608 authored by Rayne Liu's avatar Rayne Liu
Browse files

Fixed some bugs

parent 27479b6c
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
import numpy as np import numpy as np
from scipy import interpolate from scipy import interpolate
import corner import corner
import os
os.environ['MPLCONFIGDIR'] = '/home/rayne.liu/.config/matplotlib'
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator from matplotlib.ticker import MaxNLocator
from matplotlib import rc from matplotlib import rc
...@@ -130,7 +132,7 @@ plt.plot(timespan_new, gwdatanew_re, "b", alpha=0.3, lw=2, label='After_re') ...@@ -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, 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.plot(timespan_new, gwdatanew_im, alpha=0.3, lw=2, label='After_im')
plt.legend() plt.legend()
figtest.savefig(rootpath + '/plotsmc/001_interpolated_datatest.png', format='png', bbox_inches='tight', dpi=300) figtest.savefig(rootpath + '/plotsmc/0001_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! # ### Now the interpolation seems nice according to what we have above...let's start sampling!
...@@ -207,7 +209,7 @@ def log_probability(theta): ...@@ -207,7 +209,7 @@ def log_probability(theta):
pool = choose_pool(1) pool = choose_pool(1)
pool.size = 1 pool.size = 1
np.random.seed(42) 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 = list(pos)
pos += 1e-5 * np.random.randn(ntemps, nwalkers, ndim) pos += 1e-5 * np.random.randn(ntemps, nwalkers, ndim)
sampler = ptemcee.Sampler(nwalkers, ndim, log_likelihood, log_prior, ntemps=ntemps, pool=pool) sampler = ptemcee.Sampler(nwalkers, ndim, log_likelihood, log_prior, ntemps=ntemps, pool=pool)
......
...@@ -12,7 +12,7 @@ initialdir = . ...@@ -12,7 +12,7 @@ initialdir = .
notify_user = rl746@cornell.edu notify_user = rl746@cornell.edu
notification = Complete notification = Complete
arguments = "-processid $(Process)" arguments = "-processid $(Process)"
request_memory = 128GB request_memory = 64GB
request_cpus = 1 request_cpus = 1
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11)) on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty accounting_group = aei.dev.test_dynesty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment