def add_file(self, fname, unit, binflag=False, output=False, package=None):
    ipop = []
    for (idx, file_data) in enumerate(self.file_data):
        if ((file_data.fname == fname) or (file_data.unit == unit)):
            ipop.append(idx)
    self.file_data.append(FileDataEntry(fname, unit, binflag=binflag, output=output, package=package))
    return
def add_file(self, fname, unit, binflag=False, output=False, package=None):
    ipop = []
    for (idx, file_data) in enumerate(self.file_data):
        if ((file_data.fname == fname) or (file_data.unit == unit)):
            ipop.append(idx)
    self.file_data.append(FileDataEntry(fname, unit, binflag=binflag, output=output, package=package))
    return