Skip to content

Commit

Permalink
Added feedback 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GalagaBits committed Mar 17, 2024
1 parent b716e87 commit 91e6758
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/spelunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,7 @@ def negative_flux_preprocessing(self, fg_array, fg_time, fg_flux):
'''

neg_elements = []
for idx ,i in enumerate(fg_flux):
if i < 0:
neg_elements.append(idx)

idx_array = np.arange(len(fg_flux))
bool_mask = np.full(len(fg_flux), True)

for i in neg_elements:
bool_mask[i] = False
bool_mask = fg_flux >= 0

fg_array = fg_array[bool_mask]
fg_time = fg_time[bool_mask]
Expand Down

0 comments on commit 91e6758

Please sign in to comment.