How to use the porespy.io.evtk.vtk.VtkDataType function in porespy

To help you get started, we’ve selected a few porespy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
#    DATA TYPES


class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
             'float64': VtkFloat64}
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
VtkUnstructuredGrid = VtkFileType("UnstructuredGrid", ".vtu")

#    DATA TYPES


class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
VtkStructuredGrid = VtkFileType("StructuredGrid", ".vts")
VtkUnstructuredGrid = VtkFileType("UnstructuredGrid", ".vtu")

#    DATA TYPES


class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
             'float64': VtkFloat64}

#    CELL TYPES
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
             'float64': VtkFloat64}
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
             'float64': VtkFloat64}

#    CELL TYPES
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
#    DATA TYPES


class VtkDataType:

    def __init__(self, size, name):
        self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
github PMEAL / porespy / porespy / io / evtk / vtk.py View on Github external
self.size = size
        self.name = name

    def __str__(self):
        return "Type: %s  Size: %d \n" % (self.name, self.size)

VtkInt8 = VtkDataType(1, "Int8")
VtkUInt8 = VtkDataType(1, "UInt8")
VtkInt16 = VtkDataType(2, "Int16")
VtkUInt16 = VtkDataType(2, "UInt16")
VtkInt32 = VtkDataType(4, "Int32")
VtkUInt32 = VtkDataType(4, "UInt32")
VtkInt64 = VtkDataType(8, "Int64")
VtkUInt64 = VtkDataType(8, "UInt64")
VtkFloat32 = VtkDataType(4, "Float32")
VtkFloat64 = VtkDataType(8, "Float64")

# Map numpy to VTK data types
np_to_vtk = {'int8': VtkInt8,
             'uint8': VtkUInt8,
             'int16': VtkInt16,
             'uint16': VtkUInt16,
             'int32': VtkInt32,
             'uint32': VtkUInt32,
             'int64': VtkInt64,
             'uint64': VtkUInt64,
             'float32': VtkFloat32,
             'float64': VtkFloat64}

#    CELL TYPES