Skip to content

Commit

Permalink
MAINT: change imports from q2-types-genomics to q2-types. (#8)
Browse files Browse the repository at this point in the history
* changed all imports from q2-types-genomics to q2-types

* typo in meta.yaml

* lint
  • Loading branch information
VinzentRisch authored Jun 5, 2024
1 parent 97c3735 commit 99ded76
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ requirements:
- pysam
- python {{ python }}
- qiime2 {{ qiime2_epoch }}.*
- q2-types-genomics {{ qiime2_epoch }}.*
- q2-types {{ qiime2_epoch }}.*
- q2templates {{ qiime2_epoch }}.*

test:
Expand Down
2 changes: 1 addition & 1 deletion q2_checkm/checkm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import pandas as pd
import pkg_resources
import q2templates
from q2_types_genomics.per_sample_data._format import MultiMAGSequencesDirFmt
from q2_types.per_sample_sequences import MultiMAGSequencesDirFmt

from q2_checkm.plots import _draw_detailed_plots, _draw_overview_plots
from q2_checkm.utils import (
Expand Down
2 changes: 1 addition & 1 deletion q2_checkm/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------
from q2_types.per_sample_sequences import MAGs
from q2_types.sample_data import SampleData
from q2_types_genomics.per_sample_data import MAGs
from qiime2.core.type import Bool, Float, Int, Range, Str
from qiime2.plugin import Citations, Plugin

Expand Down
2 changes: 1 addition & 1 deletion q2_checkm/tests/test_checkm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import pandas as pd
from pandas._testing import assert_frame_equal
from q2_types_genomics.per_sample_data import MultiMAGSequencesDirFmt
from q2_types.per_sample_sequences import MultiMAGSequencesDirFmt
from qiime2.plugin.testing import TestPluginBase

from q2_checkm.checkm import (
Expand Down
2 changes: 1 addition & 1 deletion q2_checkm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _process_common_input_params(processing_func, params: dict) -> List[str]:
processed_args = []
for arg_key, arg_val in params.items():
# bool is a subclass of int so to only reject ints we need to do:
if type(arg_val) != int and not arg_val:
if type(arg_val) is not int and not arg_val:
continue
else:
processed_args.extend(processing_func(arg_key, arg_val))
Expand Down

0 comments on commit 99ded76

Please sign in to comment.