Skip to content

Commit

Permalink
warning added
Browse files Browse the repository at this point in the history
  • Loading branch information
bensondaled committed May 8, 2017
1 parent b6d1c0f commit ef465dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyfluo/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ def get_camera_trace(self, camera_idx, data_file=None, verbose=True):
trace = Series(trace, Ts=Ts)

else:
if data_file is None:
warnings.warn('No traces stored and no data file supplied.')
return None

roi = self.get_camera_roi(camera_idx)
if roi is None:
warnings.warn('Could not generate trace because no ROI is stored.')
Expand Down

0 comments on commit ef465dc

Please sign in to comment.