Skip to content

Commit

Permalink
Merge pull request #922 from igmhub/p-slash-patch-bal-mask
Browse files Browse the repository at this point in the history
Update bal_mask.py
  • Loading branch information
iprafols authored Aug 29, 2022
2 parents a06c3a1 + adeb132 commit 6f44a68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py/picca/delta_extraction/masks/bal_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def __init__(self, config):
for los_id in np.unique(self.cat[los_id_name]):
self.los_ids[los_id] = self.add_bal_rest_frame(los_id, los_id_name)

num_bals = np.sum([len(los_id) for los_id in self.los_ids.values()])
num_bals = np.sum([len(los_id) for los_id in self.los_ids.values()
if los_id is not None])
self.logger.progress(f'In catalog: {num_bals} BAL quasars')

def add_bal_rest_frame(self, los_id, los_id_name):
Expand Down Expand Up @@ -179,7 +180,7 @@ def add_bal_rest_frame(self, los_id, los_id_name):
min_velocities = min_velocities[w]
max_velocities = max_velocities[w]

num_velocities = min_velocities.size()
num_velocities = min_velocities.size
if num_velocities == 0:
return None

Expand Down

0 comments on commit 6f44a68

Please sign in to comment.