code: def from_files(cls, ID, datafiles, parser, readdata_kwargs={}, readmeta_kwargs={}, **ID_kwargs):
          
          d = _assign_IDS_to_datafiles(datafiles, parser, cls._measurement_class, **ID_kwargs)
          measurements = []
          for sID, dfile in d.items():
              try:
                  measurements.append(cls._measurement_class(sID, datafile=dfile,
                                                             readdata_kwargs=readdata_kwargs,
                                                             readmeta_kwargs=readmeta_kwargs))
              except:
                  msg = 'Error occurred while trying to parse file: %s' % dfile
                  raise IOError(msg)
          return cls(ID, measurements)
docs: Create a Collection of measurements from a set of data files.
  
          Parameters
          ----------
          {_bases_ID}
          {_bases_data_files}
          {_bases_filename_parser}
          {_bases_ID_kwargs}