Skip to content
Browse files

Use a BiopythonWarning for chromosome labelling.

TODO - Hide this warning in test_GraphicsChromosome.py
  • Loading branch information...
1 parent e5b6518 commit 20ddedf89489543737ae35f76e70529828d6a059 @peterjc peterjc committed Jan 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Bio/Graphics/BasicChromosome.py
View
3 Bio/Graphics/BasicChromosome.py
@@ -511,7 +511,8 @@ def _spring_layout(desired, minimum, maximum, gap=0):
if equal_step < gap:
import warnings
- warnings.warn("Too many labels to avoid overlap")
+ from Bio import BiopythonWarning
+ warnings.warn("Too many labels to avoid overlap", BiopythonWarning)
#Crudest solution
return [minimum+i*equal_step for i in range(count)]

0 comments on commit 20ddedf

Please sign in to comment.
Something went wrong with that request. Please try again.