def import_mpt(self, filename, **kwargs): """MPT DAS 1 FD importer timestep: int or :class:`datetime.datetime` if provided use this value to set the 'timestep' column of the produced dataframe. Default: 0 """ timestep = kwargs.get('timestep', None) if 'timestep' in kwargs: del (kwargs['timestep']) self.logger.info('MPT DAS-1 import') with LogDataChanges(self, filter_action='import'): data, electrodes, topography = reda_mpt.import_das1_sip( filename, **kwargs) if timestep is not None: data['timestep'] = timestep self._add_to_container(data) if kwargs.get('verbose', False): print('Summary:') self._describe_data(data)
def import_mpt_das1(self, filename, timestep=None, **kwargs): """Import MPT DAS-1 SIP data Parameters ---------- filename : str Data file timestep : object, optional Timestep of the measurement, default: None """ # check file type assert mpt_das1.get_measurement_type(filename) == 'sip' data, electrodes, topography = mpt_das1.import_das1_sip(filename) if timestep is not None: data['timestep'] = timestep self._add_to_container(data) self.electrode_positions = electrodes self.topography = topography print('Summary:') self._describe_data(data)