diff --git a/spinn_utilities/configs/__init__.py b/spinn_utilities/configs/__init__.py index e9894e09..6ea7b95d 100644 --- a/spinn_utilities/configs/__init__.py +++ b/spinn_utilities/configs/__init__.py @@ -13,12 +13,10 @@ # limitations under the License. from .camel_case_config_parser import CamelCaseConfigParser -from .case_sensitive_parser import CaseSensitiveParser from .config_template_exception import ConfigTemplateException from .no_config_found_exception import NoConfigFoundException from .unexpected_config_exception import UnexpectedConfigException __all__ = [ - "CamelCaseConfigParser", "CaseSensitiveParser", - "ConfigTemplateException", "NoConfigFoundException", - "UnexpectedConfigException"] + "CamelCaseConfigParser", "ConfigTemplateException", + "NoConfigFoundException", "UnexpectedConfigException"] diff --git a/spinn_utilities/configs/case_sensitive_parser.py b/spinn_utilities/configs/case_sensitive_parser.py deleted file mode 100644 index 20558fa0..00000000 --- a/spinn_utilities/configs/case_sensitive_parser.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2017 The University of Manchester -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import configparser - - -class CaseSensitiveParser(configparser.RawConfigParser): - def optionxform(self, optionstr): - """ - Performs no transformation of option strings. - """ - return optionstr diff --git a/spinn_utilities/data/utils_data_view.py b/spinn_utilities/data/utils_data_view.py index 7a52be76..9b4601f8 100644 --- a/spinn_utilities/data/utils_data_view.py +++ b/spinn_utilities/data/utils_data_view.py @@ -613,11 +613,11 @@ def _mock_has_run(cls): def raise_skiptest(self, reason, parent=None): """ - Sets the status as shutdown amd raises a SkipTest + Sets the status as shutdown and raises a SkipTest - :param Exception reason: Message for the exception is any - :param parent: Exception which trggered the skip if any - :type reason: Exception or None + :param str reason: Message for the Skip + :param parent: Exception which triggered the skip if any + :type parent: Exception or None :raises: SkipTest very time called """ self.__data._data_status = DataStatus.SHUTDOWN diff --git a/spinn_utilities/exceptions.py b/spinn_utilities/exceptions.py index 78b81901..bbdd716d 100644 --- a/spinn_utilities/exceptions.py +++ b/spinn_utilities/exceptions.py @@ -50,14 +50,6 @@ def __init__(self, data): super().__init__(f"{data} has not yet been created.") -class DataChanged(SpiNNUtilsException): - """ - Raised when trying to get data after some changed. - """ - def __init__(self, data): - super().__init__(f"{data} has been changed.") - - class DataNotMocked(DataNotYetAvialable): """ Raised when trying to get data before a mocked simulator has created it. @@ -66,12 +58,6 @@ def __init__(self, data): super().__init__(f"MOCK {data}") -class IllegalState(DataNotYetAvialable): - """ - Raised when trying to get data before a mocked simulator has created it. - """ - - class ShutdownException(SpiNNUtilsException): """ Raised when trying to get simulator data after it has been shut down.