Skip to content

Commit 99ded76

Browse files
authored
MAINT: change imports from q2-types-genomics to q2-types. (#8)
* changed all imports from q2-types-genomics to q2-types * typo in meta.yaml * lint
1 parent 97c3735 commit 99ded76

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: ci/recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ requirements:
2727
- pysam
2828
- python {{ python }}
2929
- qiime2 {{ qiime2_epoch }}.*
30-
- q2-types-genomics {{ qiime2_epoch }}.*
30+
- q2-types {{ qiime2_epoch }}.*
3131
- q2templates {{ qiime2_epoch }}.*
3232

3333
test:

Diff for: q2_checkm/checkm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pandas as pd
1818
import pkg_resources
1919
import q2templates
20-
from q2_types_genomics.per_sample_data._format import MultiMAGSequencesDirFmt
20+
from q2_types.per_sample_sequences import MultiMAGSequencesDirFmt
2121

2222
from q2_checkm.plots import _draw_detailed_plots, _draw_overview_plots
2323
from q2_checkm.utils import (

Diff for: q2_checkm/plugin_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
# The full license is in the file LICENSE, distributed with this software.
77
# ----------------------------------------------------------------------------
8+
from q2_types.per_sample_sequences import MAGs
89
from q2_types.sample_data import SampleData
9-
from q2_types_genomics.per_sample_data import MAGs
1010
from qiime2.core.type import Bool, Float, Int, Range, Str
1111
from qiime2.plugin import Citations, Plugin
1212

Diff for: q2_checkm/tests/test_checkm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import pandas as pd
1818
from pandas._testing import assert_frame_equal
19-
from q2_types_genomics.per_sample_data import MultiMAGSequencesDirFmt
19+
from q2_types.per_sample_sequences import MultiMAGSequencesDirFmt
2020
from qiime2.plugin.testing import TestPluginBase
2121

2222
from q2_checkm.checkm import (

Diff for: q2_checkm/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _process_common_input_params(processing_func, params: dict) -> List[str]:
5353
processed_args = []
5454
for arg_key, arg_val in params.items():
5555
# bool is a subclass of int so to only reject ints we need to do:
56-
if type(arg_val) != int and not arg_val:
56+
if type(arg_val) is not int and not arg_val:
5757
continue
5858
else:
5959
processed_args.extend(processing_func(arg_key, arg_val))

0 commit comments

Comments
 (0)