# Path: q2_types/plugin_setup.py



import csv
import qiime2.plugin.model as model
from qiime2.plugin import ValidationError
from ..plugin_setup import plugin
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------





class AlphaDiversityFormat(model.TextFileFormat):
    def _validate_(self, level):
        with self.open() as fh:

# Path: q2_types/plugin_setup.py



# Path: q2_types/sample_data/_format.py
import csv
import qiime2.plugin.model as model
from qiime2.plugin import ValidationError
from ..plugin_setup import plugin

# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------





class AlphaDiversityFormat(model.TextFileFormat):
    def _validate_(self, level):
        with self.open() as fh:

            header, records_seen, is_min = None, 0, level == 'min'