From 6f6d728d8678c6f5b1eb10adb998ce1ff5ba8fa7 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 22 Mar 2023 16:51:13 +0100 Subject: [PATCH] formating and spelling --- README.md | 2 +- pyLSV2/client.py | 4 ++-- pyLSV2/const.py | 2 +- pyLSV2/dat_cls.py | 2 +- pyLSV2/misc.py | 2 +- scripts/lsv2_demo.py | 2 +- scripts/scope2csv.py | 6 +++--- tests/test_keys.py | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6a12bcf..8fa20a2 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ These changes where made intentionally to make further development easier. See t ``` The results indicate that pyLSV2 should work with python 3.5 and even with 3.4 if you install the packported modules argparse, enum and typing. While argpares is only used in the demo script - the other two are necessary. Therefore it should be possible to use pyLSV2 with the curretn version + the other two are necessary. Therefore it should be possible to use pyLSV2 with the current version of [IronPython](https://ironpython.net/) if you install these two modules. # Resources diff --git a/pyLSV2/client.py b/pyLSV2/client.py index 89090f0..2fc9a07 100644 --- a/pyLSV2/client.py +++ b/pyLSV2/client.py @@ -1445,7 +1445,7 @@ def set_keyboard_access(self, unlocked: bool) -> bool: :param unlocked: if ``True`` unlocks the keyboard so it can be used. If ``False``, input is set to locked """ if self.versions.is_tnc7(): - self._logger.warning("this function might not be supportet on TNC7") + self._logger.warning("this function might not be supported on TNC7") if not self.login(lc.Login.MONITOR): self._logger.warning("clould not log in as user MONITOR") @@ -1556,7 +1556,7 @@ def send_key_code(self, key_code: Union[lc.KeyCode, lc.OldKeyCode]) -> bool: :param key_code: code number of the keyboard key """ if self.versions.is_tnc7(): - self._logger.warning("this function might not be supportet on TNC7") + self._logger.warning("this function might not be supported on TNC7") if not self.login(lc.Login.MONITOR): self._logger.warning("clould not log in as user MONITOR") diff --git a/pyLSV2/const.py b/pyLSV2/const.py index f4c756e..a022c65 100644 --- a/pyLSV2/const.py +++ b/pyLSV2/const.py @@ -826,7 +826,7 @@ class CMD(str, Enum): requires MONITOR login priviliege""" R_VR = "R_VR" - """R_VR: read general info about the control itself. recive version. + """R_VR: read general info about the control itself. receive version. requires INSPECT login priviliege""" R_WD = "R_WD" diff --git a/pyLSV2/dat_cls.py b/pyLSV2/dat_cls.py index 6141b79..ad8a237 100644 --- a/pyLSV2/dat_cls.py +++ b/pyLSV2/dat_cls.py @@ -142,7 +142,7 @@ def is_tnc(self) -> bool: def is_pilot(self) -> bool: """return ``True`` if control is a CNCPILOT640""" return self._control_type == ControlType.LATHE_NEW - + def is_tnc7(self) -> bool: """return ```True``` if control is a TNC7""" return self._control_type == ControlType.TNC7 diff --git a/pyLSV2/misc.py b/pyLSV2/misc.py index c33df50..6370bb6 100644 --- a/pyLSV2/misc.py +++ b/pyLSV2/misc.py @@ -122,7 +122,7 @@ def decode_file_system_info( # flag_hidden = 0x08 # file is hidden # flag_dir = 0x10 # identiier for directory / drive name # flag_protected = 0x20 # identifier for write protetion - # flag_subdir = 0x40 # identidier for subdirectory / drive name + # flag_subdir = 0x40 # identifier for subdirectory / drive name # flag_selected = 0x80 # file is selected (M-flag) # flag_drive_protected = 0x20 # if flag_dir is set, drive is write protected diff --git a/scripts/lsv2_demo.py b/scripts/lsv2_demo.py index a16b5da..909d874 100644 --- a/scripts/lsv2_demo.py +++ b/scripts/lsv2_demo.py @@ -135,7 +135,7 @@ print("# Value of machine parameter for NC language: {:s}".format(lang)) if con.version.is_tnc7(): - print("UI Interface test not availible on TNC7?") + print("UI Interface test not available on TNC7?") else: print("UI Interface") print("# switch to mode manual") diff --git a/scripts/scope2csv.py b/scripts/scope2csv.py index 45b1957..7db5147 100644 --- a/scripts/scope2csv.py +++ b/scripts/scope2csv.py @@ -32,7 +32,7 @@ parser.add_argument( "signals", - help="list of signal numbers to record. seperated by spaces", + help="list of signal numbers to record. separated by spaces", nargs="+", type=int, ) @@ -90,7 +90,7 @@ selected_signals = args.signals if sorted(selected_signals)[0] < 0: logging.error( - "the selected signal numbers contain at least one negativ value: %d", + "the selected signal numbers contain at least one negative value: %d", selected_signals[0], ) sys.exit(-1) @@ -115,7 +115,7 @@ if sorted(selected_signals)[-1] > len(availible_signals): logging.error( - "the selected signal number is outside the rage of availible signals of %s", + "the selected signal number is outside the rage of available signals of %s", len(availible_signals), ) sys.exit(-10) diff --git a/tests/test_keys.py b/tests/test_keys.py index 95013a5..e1f3ac6 100644 --- a/tests/test_keys.py +++ b/tests/test_keys.py @@ -15,7 +15,7 @@ def test_key_press_sim(address: str, timeout: float): lsv2.login(pyLSV2.Login.MONITOR) if lsv2.versions.is_tnc7(): - # key access not availible for tnc7? + # key access not available for tnc7? pass else: assert lsv2.set_keyboard_access(False) is True