Skip to content

Commit

Permalink
Merge pull request #5 from itroulli/master
Browse files Browse the repository at this point in the history
Update sanitise_value_for_mongo function (Issue #2)
  • Loading branch information
JackKelly authored Oct 18, 2017
2 parents 53f888a + 30839ec commit f9bd95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralnilm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def check_windows(windows):
def sanitise_value_for_mogno(value):
if isinstance(value, dict):
value = sanitise_dict_for_mongo(value)
elif isinstance(value, list):
elif isinstance(value, list) or isinstance(value, np.ndarray):
value = [sanitise_value_for_mogno(item) for item in value]
elif isinstance(value, np.floating):
value = float(value)
Expand Down

0 comments on commit f9bd95b

Please sign in to comment.