(self, data_file, skip_checksum=False)
return self.calculate_hash()
Set the datafile path, then recalculate sample count. If not skipped,
        update the hash and return the hash string.
Set the datafile path, then recalculate sample count. If not skipped,
        update the hash and return the hash string.
Set the datafile path then recalculate sample count . If not skipped update the hash and return the hash string .
def set_data_file(self, data_file, skip_checksum=False):
        """
        Set the datafile path, then recalculate sample count. If not skipped,
        update the hash and return the hash string.
        """
        if self.get_global_field(self.DATATYPE_KEY) is None:
            raise SigMFFileError("Error setting data file, the DATATYPE_KEY must be set in the global metadata first.")

        self.data_file = data_file
        self._count_samples()
        if skip_checksum:
            return None
        return self.calculate_hash()
def set_data_file ( self , data_file , skip_checksum = False ) : if self . get_global_field ( self . DATATYPE_KEY ) is None : raise SigMFFileError ( "Error setting data file, the DATATYPE_KEY must be set in the global metadata first." ) self . data_file = data_file self . _count_samples ( ) if skip_checksum : return None return self . calculate_hash ( )