def copy_data(self, second_sidfile):
        """Copy the second_sidfile's data on the current data vector for every common stations.
           If a copy is done then the timestamps are also copied."""
        has_copied = False
        for iStation, station in enumerate(self.stations):
            try:
                second_idx = second_sidfile.get_station_index(station)
                self.data[iStation] = second_sidfile.data[second_idx][:] # deep copy
                has_copied = True
            except __HOLE__:
                # missing station in the second file
                pass
        if has_copied:
            self.timestamp = second_sidfile.timestamp[:] # deep copy

    ##
    ##  Write a SID File
    ##
dataset/ETHPy150Open ericgibert/supersid/supersid/sidfile.py/SidFile.copy_data