Skip to content

Commit

Permalink
heart.GeodeticDataset.get_data_mask: check for existing blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
hvasbath committed Apr 22, 2024
1 parent ff647b1 commit 18ef393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beat/heart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,8 @@ def get_data_mask(self, corr_config):
% utility.list2string(station_blacklist_idxs)
)
mask = num.zeros_like(self.lats, dtype=num.bool_)
mask[num.array(station_blacklist_idxs)] = True
if len(station_blacklist_idxs) > 0:
mask[num.array(station_blacklist_idxs)] = True
return mask

def station_name_index_mapping(self):
Expand Down

0 comments on commit 18ef393

Please sign in to comment.