Skip to content

Commit

Permalink
clean up script
Browse files Browse the repository at this point in the history
  • Loading branch information
helenarichie committed Jun 27, 2024
1 parent 2399587 commit 68a2a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cluster/SFR_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
min_mass = 1e3
max_mass = 2e4
alpha = 1.8
SF_max = 2e9
m82 = True
if m82:
mw = False
Expand Down Expand Up @@ -61,7 +62,7 @@ def sample_from_mass_CDF(X, alpha, mclmin, mclmax):
phi_cl = np.empty(0)
z_cl = np.empty(0)
total_SF = 0
while (total_SF < 1e9):
while (total_SF < SF_max):
cl = np.random.rand(1)
#cl_mass = inv_cdf(cl)
#cl_mass = sample_from_mass_CDF(cl, 2, 1e4, 5e6)
Expand Down

0 comments on commit 68a2a4f

Please sign in to comment.