commit | 92f1a6d3eee44dc727db9447d74b423058c57a2b | [log] [tgz] |
---|---|---|
author | Javi Merino <javi.merino@arm.com> | Thu Apr 10 16:30:36 2014 +0100 |
committer | Javi Merino <javi.merino@arm.com> | Wed Aug 12 14:52:37 2015 +0100 |
tree | 8730227b3d4443c5bbaa7fb6013709bce3041f34 | |
parent | 67958b1d705594b9429ebdd51b265af8beaa9968 [diff] [blame] |
thermal: new pandas doesn't allow you to use a DataFrame in a boolean context Test if the data_frame is None instead, which is basically what you want.
diff --git a/cr2/thermal.py b/cr2/thermal.py index 75f24dd..5d9be89 100644 --- a/cr2/thermal.py +++ b/cr2/thermal.py
@@ -86,7 +86,7 @@ def get_data_frame(self): """Return a pandas data frame for the run""" - if self.data_frame: + if self.data_frame is None: return self.data_frame if not self.data_csv: