Skip to content

Commit 286228c

Browse files
authored
grammar
1 parent c1b1ba0 commit 286228c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

deepszsim/simclusters.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class simulate_clusters:
1212
"""
13-
Class for simulating a distribution of clusters.
13+
Class for simulating a distribution of clusters
1414
1515
Parameters:
1616
----------
@@ -116,15 +116,15 @@ def __init__(self, M200 = None, redshift_z = None, num_halos = None, halo_params
116116

117117
def get_y_maps(self):
118118
"""
119-
Get 'y' maps from object.
119+
Get 'y' maps from object
120120
121121
Parameters:
122122
----------
123123
none
124124
125125
Returns:
126126
-------
127-
self.y_maps: array
127+
self.y_maps: float array
128128
self._size many maps of the Compton `y` value, each of which is image_size_pixels x image_size_pixels in size.
129129
"""
130130
try:
@@ -148,7 +148,7 @@ def get_dT_maps(self):
148148
149149
Returns:
150150
-------
151-
self.dT_maps: array(float)
151+
self.dT_maps: float array
152152
self._size many maps of the dT values in units of uK, each of which is image_size_pixels x
153153
image_size_pixels in size.
154154
"""
@@ -173,7 +173,7 @@ def get_T_maps(self, add_CMB = True, returnval = False):
173173
174174
Returns:
175175
-------
176-
self.clusters: array(float)
176+
self.clusters: float array
177177
self._size many maps of the sky in units of uK, each of which is image_size_pixels x image_size_pixels in
178178
size.
179179
"""
@@ -214,19 +214,20 @@ def get_T_maps(self, add_CMB = True, returnval = False):
214214

215215
def ith_T_map(self, i, add_CMB = True):
216216
"""
217-
Get ith 'T' map from object.
217+
Get ith 'T' map from object
218218
219219
Parameters:
220220
----------
221221
i: int
222-
index of the returned map.
222+
index of the returned map
223223
add_CMB: bool
224-
whether or not to include the CMB contribution to the final map.
224+
whether or not to include the CMB contribution to the final map
225225
226226
Returns:
227227
-------
228228
self.clusters: array(float)
229-
the ith map of the sky in units of uK, which is image_size_pixels x image_size_pixels in size.
229+
the ith map of the sky in units of uK, which is
230+
image_size_pixels x image_size_pixels in size
230231
"""
231232
try:
232233
return self.clusters[self.id_list[i]]['maps']['final_map']
@@ -237,20 +238,20 @@ def ith_T_map(self, i, add_CMB = True):
237238
def save_map(self, i = None, nest_h5 = True, nest_name = None,
238239
savedir = os.path.join(os.path.dirname(__file__), "outfiles")):
239240
"""
240-
Save map to file.
241+
Save map to file
241242
242243
Parameters:
243244
----------
244245
i: None or int
245-
map you want to save, if you only want to save a single map.
246+
map you want to save, if you only want to save a single map
246247
nest_h5: bool
247248
Whether or not to nest the clusters into a single h5 file, assuming that you are saving all of the
248-
clusters that you have calculated.
249+
clusters that you have calculated
249250
nest_name: None or str
250251
Name for the overall file if you are nesting them (otherwise, it will name it with the number of
251-
clusters plus the date plus a random string).
252+
clusters plus the date plus a random string)
252253
savedir: str
253-
Path to the directory you want to save into.
254+
Path to the directory you want to save into
254255
255256
Returns:
256257
--------

0 commit comments

Comments
 (0)