Skip to content

Commit

Permalink
Update cuckooml.py
Browse files Browse the repository at this point in the history
Splitting line 803 and 1146 into 2.
  • Loading branch information
greninja authored Dec 29, 2016
1 parent 0e08ad2 commit f862292
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/processing/cuckooml.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ def detect_abnormal_behaviour(self, count_dataset=None, figures=True):

# Safety check for plotting
if not Config("cuckooml").cuckooml.plotting and figures:
print >> sys.stderr, "Warning: 'plotting' and 'figures' do not match. Plotting modules might not be imported."
print >> sys.stderr, "Warning: 'plotting' and 'figures' do not match. \
Plotting modules might not be imported."
figures = False


Expand Down Expand Up @@ -1150,7 +1151,8 @@ def clustering_label_distribution(self, clustering, labels, plot=False):

# Safety check for plotting
if not Config("cuckooml").cuckooml.plotting and plot:
print >> sys.stderr, "Warning: 'plotting' and 'plot' do not match. Plotting modules might not be imported."
print >> sys.stderr, "Warning: 'plotting' and 'plot' do not match.\
Plotting modules might not be imported."
plot = False


Expand Down

0 comments on commit f862292

Please sign in to comment.