def direction(self, val): """ make sure the direction is parseable by boost, i.e. (1.0, 1.0, 1.0) """ self._direction = ConfigHelper.makeTuple(val) if len(self._direction) != 3: raise RuntimeError( " gun.direction: malformed input '%s', needs to be a string representing a three vector " % val)
def position(self, val): """check that the position is a three vector and can be parsed by ddg4""" self._position = ConfigHelper.makeTuple(val) if len(self._position) != 3: raise RuntimeError( " gun.position: malformed input '%s', needs to be a string representing a three vector " % val)
def position( self, val ): """check that the position is a three vector and can be parsed by ddg4""" self._position = ConfigHelper.makeTuple( val ) if len(self._position) != 3: raise RuntimeError(" gun.position: malformed input '%s', needs to be a string representing a three vector " % val )
def direction( self, val ): """ make sure the direction is parseable by boost, i.e. (1.0, 1.0, 1.0) """ self._direction = ConfigHelper.makeTuple( val ) if len(self._direction) != 3: raise RuntimeError(" gun.direction: malformed input '%s', needs to be a string representing a three vector " % val )