Skip to content
Snippets Groups Projects
Commit eeafea35 authored by Blaise Li's avatar Blaise Li
Browse files

Fix variable name.

parent faf04a84
No related branches found
No related tags found
No related merge requests found
__copyright__ = "Copyright (C) 2022-2023 Blaise Li" __copyright__ = "Copyright (C) 2022-2023 Blaise Li"
__licence__ = "GNU GPLv3" __licence__ = "GNU GPLv3"
__version__ = "0.27.2" __version__ = "0.27.3"
from .libcodonusage import ( from .libcodonusage import (
aa2colour, aa2colour,
aa_usage, aa_usage,
......
...@@ -507,11 +507,11 @@ def check_aa_codon_columns(table): ...@@ -507,11 +507,11 @@ def check_aa_codon_columns(table):
Check that the columns of *table* correspond to (aa, codon) pairs. Check that the columns of *table* correspond to (aa, codon) pairs.
""" """
msg = "Codon proportions table should have two levels: 'aa' and 'codon'" msg = "Codon proportions table should have two levels: 'aa' and 'codon'"
if codon_proportions_by_aa.columns.nlevels !=2: if table.columns.nlevels !=2:
raise ValueError(msg) raise ValueError(msg)
if codon_proportions_by_aa.columns.names[0] != "aa": if table.columns.names[0] != "aa":
raise ValueError(msg) raise ValueError(msg)
if codon_proportions_by_aa.columns.names[1] != "codon": if table.columns.names[1] != "codon":
raise ValueError(msg) raise ValueError(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment