# Path: cotede/qctests/qctests.py
# def frozen_profile():
# def grey_list():
# def valid_speed():
# def gross_sensor_drift():
# def platform_identification():


import logging
import numpy as np
from numpy import ma
from .qctests import QCCheckVar
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst





module_logger = logging.getLogger(__name__)


class StuckValue(QCCheckVar):
    def test(self):
        self.flags = {}

        x = ma.compressed(self.data[self.varname])
        flag = np.zeros(self.data[self.varname].shape, dtype='i1')

# Path: cotede/qctests/qctests.py
# def frozen_profile():
# def grey_list():
# def valid_speed():
# def gross_sensor_drift():
# def platform_identification():


# Path: cotede/qctests/stuck_value.py
import logging
import numpy as np
from numpy import ma
from .qctests import QCCheckVar

# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst





module_logger = logging.getLogger(__name__)


class StuckValue(QCCheckVar):
    def test(self):
        self.flags = {}

        x = ma.compressed(self.data[self.varname])
        flag = np.zeros(self.data[self.varname].shape, dtype='i1')

        if (x.size > 1) and (np.allclose(x, np.ones_like(x) * x[0])):