Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
just playing with colors
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Sep 3, 2014
1 parent d6f5901 commit 8db9795
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workbench_apps/workbench_cli/workbench_shell.py
Expand Up @@ -111,12 +111,12 @@ def load_sample(self, file_path, tags=None):
raw_bytes = my_file.read()
md5 = hashlib.md5(raw_bytes).hexdigest()
if not self.workbench.has_sample(md5):
print '%sStreaming Sample...%s' % (color.Purple, color.Normal)
print '%sStreaming Sample...%s' % (color.LightPurple, color.Normal)
basename = os.path.basename(path)
md5 = self.streamer.stream_to_workbench(raw_bytes, basename, 'unknown', tags)

print '\n%s %s%s %sLocked and Loaded...%s\n' % \
(self.beer, color.Purple, md5[:6], color.Yellow, color.Normal)
(self.beer, color.LightPurple, md5[:6], color.Yellow, color.Normal)

# Add tags to the sample
self.workbench.add_tags(md5, tags)
Expand Down Expand Up @@ -147,7 +147,7 @@ def tag_info(self):

corr = tag_df.corr().fillna(1)
corr_dict = corr.to_dict()
print '\n%sSamples in Database%s' % (color.Purple, color.Normal)
print '\n%sSamples in Database%s' % (color.LightPurple, color.Normal)
for tag, count in tag_freq.iteritems():
print ' %s%s: %s%s%s (' % (color.Green, tag, color.LightBlue, count, color.Normal),
tag_corrs = sorted(corr_dict[tag].iteritems(), key=operator.itemgetter(1), reverse=True)
Expand Down Expand Up @@ -215,7 +215,7 @@ def run(self):
cfg.InteractiveShellEmbed.autoindent = True
cfg.InteractiveShellEmbed.deep_reload = True
cfg.PromptManager.in_template = (
r'{color.Purple}{short_md5}{color.LightBlue} Workbench{color.Green}[\#]> ')
r'{color.LightPurple}{short_md5}{color.LightBlue} Workbench{color.Green}[\#]> ')
# cfg.PromptManager.out_template = ''

# Create the IPython shell
Expand Down

0 comments on commit 8db9795

Please sign in to comment.