Skip to content

Commit cc5d78a

Browse files
committed
Change ells to multipoles in variable names
1 parent 66c9604 commit cc5d78a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

vega/coordinates.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(self, k_edges, num_ells=3):
162162
self.num_ells = num_ells
163163
self.k_min = self.k_edges.min()
164164
self.k_max = self.k_edges.max()
165-
self.data_ells = np.arange(0, 2*num_ells, 2)
165+
self.data_multipoles = np.arange(0, 2*num_ells, 2)
166166

167167
self.rp_binsize = 1e-100
168168
self.rt_binsize = 1e-100
@@ -183,16 +183,17 @@ def get_mask_scale_cuts(self, cuts_config):
183183
# Read the cuts
184184
k_min_cut = cuts_config.getfloat('k-min', 0.)
185185
k_max_cut = cuts_config.getfloat('k-max', 0.2)
186-
self.model_ells = np.array(cuts_config.get('use_multipoles', '0,2,4').split(',')).astype(int)
186+
self.model_multipoles = np.array(
187+
cuts_config.get('use_multipoles', '0,2,4').split(',')).astype(int)
187188

188-
for ell in self.model_ells:
189-
if ell not in self.data_ells:
189+
for ell in self.model_multipoles:
190+
if ell not in self.model_multipoles:
190191
raise ValueError(
191-
f'Invalid multipole in cuts. Valid multipoles are {self.data_ells}')
192+
f'Invalid multipole in cuts. Valid multipoles are {self.data_multipoles}')
192193

193194
mask = np.full((self.num_bins, self.num_ells), True, dtype=bool)
194-
for i, ell in enumerate(self.data_ells):
195-
mask[:, i] = (ell in self.model_ells) \
195+
for i, ell in enumerate(self.data_multipoles):
196+
mask[:, i] = (ell in self.model_multipoles) \
196197
& (self.k_centers > k_min_cut) \
197198
& (self.k_centers < k_max_cut)
198199

0 commit comments

Comments
 (0)