@classmethod
    def from_sctype(class_, sctype, shape=(), dflt=None):
        if (not isinstance(sctype, type)
           or not issubclass(sctype, numpy.generic)):
            if sctype not in numpy.sctypeDict:
                raise ValueError("unknown NumPy scalar type: %r" % (sctype,))
            sctype = numpy.sctypeDict[sctype]
        return class_.from_dtype(numpy.dtype((sctype, shape)), dflt)
Create an Atom from a NumPy scalar type sctype.
dataset/ETHPy150Open PyTables/PyTables/tables/atom.py/Atom.from_sctype