parameters: (self)
return_statement: return ens
docstring: Creates an ensemble object.
  
        Returns:
           An ensemble object of the appropriate mode and with the appropriate
           objects given the attributes of the InputEnsemble object.
docstring_summary: Creates an ensemble object.
docstring_tokens: Creates an ensemble object .
function: def fetch(self):
        """Creates an ensemble object.
  
        Returns:
           An ensemble object of the appropriate mode and with the appropriate
           objects given the attributes of the InputEnsemble object.
        """
  
        super(InputEnsemble,self).fetch()
  
        if self.mode.fetch() == "nve" :
           ens = NVEEnsemble(dt=self.timestep.fetch(),
              temp=self.temperature.fetch(), fixcom=self.fixcom.fetch())
        elif self.mode.fetch() == "nvt" :
           ens = NVTEnsemble(dt=self.timestep.fetch(),
              temp=self.temperature.fetch(), thermostat=self.thermostat.fetch(), fixcom=self.fixcom.fetch())
        elif self.mode.fetch() == "npt" :
           ens = NPTEnsemble(dt=self.timestep.fetch(),
              temp=self.temperature.fetch(), thermostat=self.thermostat.fetch(), fixcom=self.fixcom.fetch(),
                    pext=self.pressure.fetch(), barostat=self.barostat.fetch() )
        elif self.mode.fetch() == "replay":
           ens = ReplayEnsemble(dt=self.timestep.fetch(),
              temp=self.temperature.fetch(),fixcom=False,intraj=self.replay_file.fetch() )
        else:
           raise ValueError("'" + self.mode.fetch() + "' is not a supported ensemble mode.")
  
        return ens
function_tokens: def fetch ( self ) : super ( InputEnsemble , self ) . fetch ( ) if self . mode . fetch ( ) == "nve" : ens = NVEEnsemble ( dt = self . timestep . fetch ( ) , temp = self . temperature . fetch ( ) , fixcom = self . fixcom . fetch ( ) ) elif self . mode . fetch ( ) == "nvt" : ens = NVTEnsemble ( dt = self . timestep . fetch ( ) , temp = self . temperature . fetch ( ) , thermostat = self . thermostat . fetch ( ) , fixcom = self . fixcom . fetch ( ) ) elif self . mode . fetch ( ) == "npt" : ens = NPTEnsemble ( dt = self . timestep . fetch ( ) , temp = self . temperature . fetch ( ) , thermostat = self . thermostat . fetch ( ) , fixcom = self . fixcom . fetch ( ) , pext = self . pressure . fetch ( ) , barostat = self . barostat . fetch ( ) ) elif self . mode . fetch ( ) == "replay" : ens = ReplayEnsemble ( dt = self . timestep . fetch ( ) , temp = self . temperature . fetch ( ) , fixcom = False , intraj = self . replay_file . fetch ( ) ) else : raise ValueError ( "'" + self . mode . fetch ( ) + "' is not a supported ensemble mode." ) return ens