Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused code and fix spellings #247

Merged
merged 5 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions spinn_utilities/configs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
23 changes: 0 additions & 23 deletions spinn_utilities/configs/case_sensitive_parser.py

This file was deleted.

8 changes: 4 additions & 4 deletions spinn_utilities/data/utils_data_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions spinn_utilities/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down