def get_all_bands(data_file): bands_group = data_file['/bands'] all_bands = [] # Row = [Starting Frequency, Stopping Frequency, Resolution] for row in bands_group: current_band = Band(float(row[1]), float(row[2]), int(row[3])) if row[0] != '(none)': current_band.add_attribute('Description', row[0]) current_band.add_attribute('Vid BW', row[4]) current_band.add_attribute('Reference Level', row[5]) current_band.add_attribute('Attenuation', row[6]) all_bands.append(current_band) return all_bands