def __init__(self, inmod, outmod, name = None,
                 inSliceFrom = 0, inSliceTo = None, outSliceFrom = 0, outSliceTo = None):
        self._name = name
        self.inSliceFrom = inSliceFrom
        self.outSliceFrom = outSliceFrom
        if inSliceTo is not None:
            self.inSliceTo = inSliceTo
        else:
            self.inSliceTo = inmod.outdim
        if outSliceTo is not None:
            self.outSliceTo = outSliceTo
        else:
            self.outSliceTo = outmod.indim

        if isinstance(inmod, ModuleSlice):
            self.inmod = inmod.base
            self.inSliceFrom += inmod.outOffset
            self.inSliceTo += inmod.outOffset
        else:
            self.inmod = inmod

        if isinstance(outmod, ModuleSlice):
            self.outmod = outmod.base
            self.outSliceFrom += outmod.inOffset
            self.outSliceTo += outmod.inOffset
        else:
            self.outmod = outmod

        self.indim = self.inSliceTo - self.inSliceFrom
        self.outdim = self.outSliceTo - self.outSliceFrom

        # arguments for for xml
        self.setArgs(inmod = self.inmod, outmod = self.outmod)
        if self.inSliceFrom > 0:
            self.setArgs(inSliceFrom = self.inSliceFrom)
        if self.outSliceFrom > 0:
            self.setArgs(outSliceFrom = self.outSliceFrom)
        if self.inSliceTo < self.inmod.outdim:
            self.setArgs(inSliceTo = self.inSliceTo)
        if self.outSliceTo < self.outmod.indim:
            self.setArgs(outSliceTo = self.outSliceTo)
Returns all locations that can be used with the project. Includes all
dataset/ETHPy150Open pybrain/pybrain/pybrain/structure/connections/connection.py/Connection.__init__--crossover with--dataset/ETHPy150Open ExCiteS/geokey/geokey/contributions/managers.py/LocationManager.get_list