def get_parameters_by_location(self, locations=None, excludes=None):
result = self.parameters<EOL>if locations:<EOL><INDENT>result = filter(lambda x: x.location_in in locations, result)<EOL><DEDENT>if excludes:<EOL><INDENT>result = filter(lambda x: x.location_in not in excludes, result)<EOL><DEDENT>return list(result)<EOL>
Get parameters list by location

        :param locations: list of locations
        :type locations: list or None
        :param excludes: list of excludes locations
        :type excludes: list or None
        :return: list of Parameter
        :rtype: list