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

Changes on cpus and memory

parent 7ff41448
Branches
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ vary_fund = True
#sampler parameters
npoints=1002
nwalkers = 42
nwalkers = 840
ntemps=12
ndim = int(4*(nmax+1))
burnin = 500 #How many points do you burn before doing the corner plot. You need to watch the convergence of the chain plot a bit.
......@@ -176,8 +176,8 @@ def log_probability(theta):
#Fit with ptemcee
#Set the number of cores of your processors
pool = choose_pool(12)
pool.size = 12
pool = choose_pool(64)
pool.size = 64
vary_param = float(vary_fund)
np.random.seed(42)
pos = np.array([[random.uniform(-0.1,0.1), random.uniform(-0.1,0.1), 4.28313743e-01, random.uniform(2.5, 2.6) + (1-vary_param) * np.pi]])
......
#!/usr/bin/env python
# coding: utf-8
import warnings
warnings.simplefilter("ignore") #Used to suppress the RuntimeWarnings. But if you are changing the code for TESTING, MAKE SURE TO COMMENT IT OUT.
#import warnings
#warnings.simplefilter("ignore") #Used to suppress the RuntimeWarnings. But if you are changing the code for TESTING, MAKE SURE TO COMMENT IT OUT.
'''
This script calculates the RDGW150914 constraints with ptemcee - specifically, the n=1 case both varying or not varying the fundamental frequencies. It produces the chain plot, corner plot, parameter constraints, and data plotted with the 1-sigma band. Since we are working specifically for the n=1 case, we also add in the corner plot the combined chain of alpha_0 and alpha_1, in order to demonstrate that the two are indistinguishable with each other.
......@@ -41,11 +41,11 @@ tshift=19
vary_fund = True
#sampler parameters
npoints=60001
nwalkers = 840
npoints=102
nwalkers = 42
ntemps=12
ndim = int(4*(nmax+1))
burnin = 5000 #How many points do you burn before doing the corner plot. You need to watch the convergence of the chain plot a bit.
burnin = 20 #How many points do you burn before doing the corner plot. You need to watch the convergence of the chain plot a bit.
#This is trivial but often forgotten: this cannot be more than npoints! Usually 1/5~1/4 npoints is what I observe.
numbins = 42 #corner plot parameter - how many bins you want
datacolor = '#105670' #'#4fa3a7'
......@@ -174,8 +174,8 @@ def log_probability(theta):
#Fit with ptemcee
#Set the number of cores of your processors
pool = choose_pool(12)
pool.size = 12
pool = choose_pool(64)
pool.size = 64
vary_param = float(vary_fund)
np.random.seed(42)
pos = np.array([[random.uniform(-0.1,0.1), random.uniform(-0.1,0.1), 4.28313743e-01, random.uniform(2.5, 2.6) + (1-vary_param) * np.pi]])
......
......@@ -175,8 +175,8 @@ def log_probability(theta):
#Fit with ptemcee
#Set the number of cores of your processors
pool = choose_pool(12)
pool.size = 12
pool = choose_pool(64)
pool.size = 64
vary_param = float(vary_fund)
np.random.seed(42)
pos = np.array([[random.uniform(-0.1,0.1), random.uniform(-0.1,0.1), 4.28313743e-01, random.uniform(2.5, 2.6) + (1-vary_param) * np.pi]])
......
......@@ -175,8 +175,8 @@ def log_probability(theta):
#Fit with ptemcee
#Set the number of cores of your processors
pool = choose_pool(12)
pool.size = 12
pool = choose_pool(64)
pool.size = 64
vary_param = float(vary_fund)
np.random.seed(42)
pos = np.array([[random.uniform(-0.1,0.1), random.uniform(-0.1,0.1), 4.28313743e-01, random.uniform(2.5, 2.6) + (1-vary_param) * np.pi]])
......
......@@ -12,8 +12,8 @@ initialdir = .
notify_user = rl746@cornell.edu
notification = Complete
arguments = "-processid $(Process)"
request_memory = 8GB
request_cpus = 4
request_memory = 512GB
request_cpus = 64
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty
queue 1
......
......@@ -12,8 +12,8 @@ initialdir = .
notify_user = rl746@cornell.edu
notification = Complete
arguments = "-processid $(Process)"
request_memory = 8GB
request_cpus = 4
request_memory = 512GB
request_cpus = 64
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty
queue 1
......
......@@ -12,8 +12,8 @@ initialdir = .
notify_user = rl746@cornell.edu
notification = Complete
arguments = "-processid $(Process)"
request_memory = 8GB
request_cpus = 4
request_memory = 512GB
request_cpus = 64
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty
queue 1
......
......@@ -12,8 +12,8 @@ initialdir = .
notify_user = rl746@cornell.edu
notification = Complete
arguments = "-processid $(Process)"
request_memory = 8GB
request_cpus = 4
request_memory = 512GB
request_cpus = 64
on_exit_remove = (ExitBySignal == False) || ((ExitBySignal == True) && (ExitSignal != 11))
accounting_group = aei.dev.test_dynesty
queue 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment