old_contents: import time, os
  from io_util import *
  from tree_util import *
  
  def main(in_fname='data/tree_refine.json'):
  	"""Prep tree for auspice, stripping sequence data"""
  
  	print "--- Streamline at " + time.strftime("%H:%M:%S") + " ---"
  
  	# Streamline tree for auspice
  	print "Writing streamlined tree"
  	tree = read_json(in_fname)
  	for node in all_descendants(tree):
  		node.pop("seq", None)
  		node.pop("aa_seq", None)
  		node.pop("clade", None)
  
  
  	out_fname_tree = "../auspice/data/tree.json"
  	write_json(tree, out_fname_tree, indent=1)
  
  if __name__ == "__main__":
  	main()
  
new_contents: import time, os
  from io_util import *
  from tree_util import *
  
  def main(in_fname='data/tree_refine.json'):
  	"""Prep tree for auspice, stripping sequence data"""
  
  	print "--- Streamline at " + time.strftime("%H:%M:%S") + " ---"
  
  	# Streamline tree for auspice
  	print "Writing streamlined tree"
  	tree = read_json(in_fname)
  	for node in all_descendants(tree):
  		node.pop("seq", None)
  		node.pop("aa_seq", None)
  		node.pop("clade", None)
  
  
  	out_fname_tree = "../auspice/data/tree.json"
  	write_json(tree, out_fname_tree, indent=None)
  	try:
  		read_json(out_fname_tree)
  	except:
  		print "Read failed, rewriting with indents"	
  		write_json(tree, out_fname_tree, indent=1)
  
  if __name__ == "__main__":
  	main()
  
subject: Fix indent bug. Fixes #18.