Skip to content

Commit

Permalink
Error Message for FRET
Browse files Browse the repository at this point in the history
  • Loading branch information
straussmaximilian committed Mar 12, 2019
1 parent 2cc8308 commit ca37fec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions picasso/gui/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -3564,6 +3564,9 @@ def calculate_fret_dialog(self):

progress.close()

if fret_events == []:
raise ValueError("No FRET events detected. Inspect picks with Show FRET Traces and make sure to have FRET events.")

fig1 = plt.figure()
plt.hist(np.hstack(fret_events), bins=np.arange(0, 1, 0.02))
plt.title(r"Distribution of $\frac{I_A}{I_D+I_A}$")
Expand Down

0 comments on commit ca37fec

Please sign in to comment.