nclt2ros/extractor/read_sensor_data.py
def read_ms25_csv(self, all_in_one=None):
        """reads the data in the ms25 csv file

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs
        """
        if self.sensor_data_flag:

            ms25 = np.loadtxt(self.sensor_data_dir + '/%s/ms25.csv' % self.date, delimiter=",")

            if all_in_one is True:

                return ms25

            else:

                utimes =   ms25[:, 0]

                mag_xs =   ms25[:, 1]
                mag_ys =   ms25[:, 2]
                mag_zs =   ms25[:, 3]

                accel_xs = ms25[:, 4]
                accel_ys = ms25[:, 5]
                accel_zs = ms25[:, 6]

                rot_rs =   ms25[:, 7]
                rot_ps =   ms25[:, 8]
                rot_hs =   ms25[:, 9]

                return utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs

        else:
            raise ValueError('no sensor_data directory available')
reads the data in the ms25 csv file

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs
        
reads the data in the ms25 csv file
reads the data in the ms25 csv file
def read_ms25_csv(self, all_in_one=None):
        if self.sensor_data_flag:
            ms25 = np.loadtxt(self.sensor_data_dir + '/%s/ms25.csv' % self.date, delimiter=",")
            if all_in_one is True:
                return ms25
            else:
                utimes =   ms25[:, 0]
                mag_xs =   ms25[:, 1]
                mag_ys =   ms25[:, 2]
                mag_zs =   ms25[:, 3]
                accel_xs = ms25[:, 4]
                accel_ys = ms25[:, 5]
                accel_zs = ms25[:, 6]
                rot_rs =   ms25[:, 7]
                rot_ps =   ms25[:, 8]
                rot_hs =   ms25[:, 9]
                return utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs
        else:
            raise ValueError('no sensor_data directory available')
def read_ms25_csv ( self , all_in_one = None ) : if self . sensor_data_flag : ms25 = np . loadtxt ( self . sensor_data_dir + '/%s/ms25.csv' % self . date , delimiter = "," ) if all_in_one is True : return ms25 else : utimes = ms25 [ : , 0 ] mag_xs = ms25 [ : , 1 ] mag_ys = ms25 [ : , 2 ] mag_zs = ms25 [ : , 3 ] accel_xs = ms25 [ : , 4 ] accel_ys = ms25 [ : , 5 ] accel_zs = ms25 [ : , 6 ] rot_rs = ms25 [ : , 7 ] rot_ps = ms25 [ : , 8 ] rot_hs = ms25 [ : , 9 ] return utimes , mag_xs , mag_ys , mag_zs , accel_xs , accel_ys , accel_zs , rot_rs , rot_ps , rot_hs else : raise ValueError ( 'no sensor_data directory available' )
reads the data in the ms25 csv file
reads the data in the ms25 csv file
"""reads the data in the ms25 csv file

        :param   all_in_one: Boolean
        :return: ndarray: containing all data, if all_in_one is True
                 else
                 each column seperated as utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs
        """
containing all data, if all_in_one is True
else
each column seperated as utimes, mag_xs, mag_ys, mag_zs, accel_xs, accel_ys, accel_zs, rot_rs, rot_ps, rot_hs
containing all data if all_in_one is True else each column seperated as utimes mag_xs mag_ys mag_zs accel_xs accel_ys accel_zs rot_rs rot_ps rot_hs
self
all_in_one
None