# -*- coding: utf-8 -*-
"""
Created on Fri Apr 12 12:01:51 2019

@author: SPAD-FCS
"""

# import numpy as np

def castData(data, type='int64'):
    """
    Convert data array to type cast
    ==========  ===============================================================
    Input       Meaning
    ----------  ---------------------------------------------------------------
    data        Data array
    ==========  ===============================================================

    ==========  ===============================================================
    Output      Meaning
    ----------  ---------------------------------------------------------------
    data        Same data array, but typecasted
    ==========  ===============================================================

    """
    data = data.astype(type)
    return data

5de70a0afc9144fd475c554bcf0a40afd22b4d3e
<mask token>

<mask token>


def castData(data, type='int64'):
    """
    Convert data array to type cast
    ==========  ===============================================================
    Input       Meaning
    ----------  ---------------------------------------------------------------
    data        Data array
    ==========  ===============================================================

    ==========  ===============================================================
    Output      Meaning
    ----------  ---------------------------------------------------------------
    data        Same data array, but typecasted
    ==========  ===============================================================

    """
    data = data.astype(type)
    return data

# -*- coding: utf-8 -*-
"""
Created on Fri Apr 12 12:01:51 2019

@author: SPAD-FCS
"""

# import numpy as np

def castData(data, type='int64'):
    """
    Convert data array to type cast
    ==========  ===============================================================
    Input       Meaning
    ----------  ---------------------------------------------------------------
    data        Data array
    ==========  ===============================================================

    ==========  ===============================================================
    Output      Meaning
    ----------  ---------------------------------------------------------------
    data        Same data array, but typecasted
    ==========  ===============================================================

    """
    data = data.astype(type)
    return data
