Bug fix in streak finder; TODO: mask from file is not refreshed on file change
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user