def create_dict(self): ''' Create a Bunch class object to store the parameter names for the Workhorse ADCP pd0 data files, with the data organized hierarchically by the data type. ''' bunch = Bunch() bunch.time = [] bunch.header = Bunch() bunch.fixed = Bunch() bunch.variable = Bunch() bunch.velocity = Bunch() bunch.correlation = Bunch() bunch.echo = Bunch() bunch.percent = Bunch() for name in self._header: bunch.header[name] = [] for name in self._fixed: bunch.fixed[name] = [] for name in self._variable: bunch.variable[name] = [] for name in self._velocity: bunch.velocity[name] = [] for name in self._correlation: bunch.correlation[name] = [] for name in self._echo: bunch.echo[name] = [] for name in self._percent: bunch.percent[name] = [] return bunch