Bug fix in streak finder; TODO: mask from file is not refreshed on file change

This commit is contained in:
Dorofeeva Elizaveta (EXT)
2025-07-04 11:57:08 +02:00
parent ff532af0d6
commit ca6ef2453a

View File

@@ -161,7 +161,7 @@ def _calc_streakfinder_analysis(results, cryst_data: CrystData):
print(f"Found {number_of_streaks} streaks")
list_result = [line.tolist() for line in streak_lines] # arr(4, n_lines); 0coord x0, y0, x1, y1
detected_streaks = np.asarray(detected.streaks.values())[streaks_mask]
detected_streaks = np.asarray(list(detected.streaks.values()))[streaks_mask]
bragg_counts = [streak.total_mass() for streak in detected_streaks]
results.update({"number_of_streaks": number_of_streaks})