Skip to content

Commit

Permalink
updated requirements.txt and reverted location of docstring for simcl…
Browse files Browse the repository at this point in the history
…usters.py
  • Loading branch information
samueldmcdermott committed Sep 27, 2024
1 parent d6392a6 commit 8dad985
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 10 additions & 7 deletions deepszsim/simclusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
from datetime import datetime as dt

class simulate_clusters:
"""
class for simulating a distribution of clusters
"""
def __init__(self, M200 = None, redshift_z = None, num_halos = None, halo_params_dict = None,
R200_Mpc = None, profile = "Battaglia2012",
image_size_pixels = None, image_size_arcmin = None, pixel_size_arcmin = None,
alpha = 1.0, gamma = -0.3,
load_vars_yaml = os.path.join(os.path.dirname(__file__), 'Settings', 'config_simACTDR5.yaml'),
seed = None, tqverb = False
):
"""
Parameters
----------
Expand Down Expand Up @@ -44,13 +54,6 @@ class simulate_clusters:
tqverb: bool
whether or not to display tqdm progress bar while making T maps
"""
def __init__(self, M200 = None, redshift_z = None, num_halos = None, halo_params_dict = None,
R200_Mpc = None, profile = "Battaglia2012",
image_size_pixels = None, image_size_arcmin = None, pixel_size_arcmin = None,
alpha = 1.0, gamma = -0.3,
load_vars_yaml = os.path.join(os.path.dirname(__file__), 'Settings', 'config_simACTDR5.yaml'),
seed = None, tqverb = False
):

if (M200 is not None) and (redshift_z is not None):
self.M200, self.redshift_z = M200, redshift_z
Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ astropy
colossus
tqdm
pixell
pandas
pandas
scipy

0 comments on commit 8dad985

Please sign in to comment.