Skip to content

Commit

Permalink
[test] Testing new implementation for finding best Imin
Browse files Browse the repository at this point in the history
  • Loading branch information
LouConreux committed Nov 25, 2024
1 parent f072fec commit b1d41d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lute/tasks/geom_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ def min_intensity(self, powder):
masked_powder = powder[powder > 0]
mean = np.mean(masked_powder)
std = np.std(masked_powder)
threshold = mean + 5 * std
threshold = mean + 3 * std
nice_pix = masked_powder < threshold
self.hist = masked_powder[nice_pix]
self.hist = masked_powder
SNRs = []
Imins = np.arange(99, 100, 0.1)
Imins = np.arange(90, 100, 0.1)
for Imin in Imins:
threshold = np.percentile(masked_powder[nice_pix], Imin)
signal_pixels = masked_powder[nice_pix][masked_powder[nice_pix] > threshold]
Expand Down

0 comments on commit b1d41d4

Please sign in to comment.