points.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:autolab_core 作者: BerkeleyAutomation 项目源码 文件源码
def _preprocess_data(self, data):
        """Converts the data array to the preferred dim x #points structure.

        Parameters
        ----------
        data : :obj:`numpy.ndarray` of float
            The data to process.

        Returns
        -------
        :obj:`numpy.ndarray` of float
            The same data array, but reshapes lists to be dim x 1.
        """
        if len(data.shape) == 1: 
            data = data[:,np.newaxis]
        return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号