From 8c24a345277ecf5d0e8f9a9c3f85a2630c367a9a Mon Sep 17 00:00:00 2001 From: Roman Cattaneo Date: Sun, 2 Feb 2025 17:49:47 +0100 Subject: [PATCH] Fix typos (#1917) Just a couple typos I found today in a debugging session. Co-authored-by: Roman Cattaneo <1116746+romanc@users.noreply.github.com> --- dace/sdfg/sdfg.py | 2 +- dace/sdfg/validation.py | 2 +- dace/transformation/transformation.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dace/sdfg/sdfg.py b/dace/sdfg/sdfg.py index dd66f05309..8701d459f4 100644 --- a/dace/sdfg/sdfg.py +++ b/dace/sdfg/sdfg.py @@ -922,7 +922,7 @@ def prepend_exit_code(self, cpp_code: str, location: str = 'frame'): def append_transformation(self, transformation): """ - Appends a transformation to the treansformation history of this SDFG. + Appends a transformation to the transformation history of this SDFG. If this is the first transformation being applied, it also saves the initial state of the SDFG to return to and play back the history. diff --git a/dace/sdfg/validation.py b/dace/sdfg/validation.py index 03ba55d5d4..dd304a616f 100644 --- a/dace/sdfg/validation.py +++ b/dace/sdfg/validation.py @@ -264,7 +264,7 @@ def validate_sdfg(sdfg: 'dace.sdfg.SDFG', references: Set[int] = None, **context elif const_name in sdfg.symbols: if const_type.dtype != sdfg.symbols[const_name]: # This should actually be an error, but there is a lots of code that depends on it. - warnings.warn(f'Mismatch between constant and symobl type of "{const_name}", ' + warnings.warn(f'Mismatch between constant and symbol type of "{const_name}", ' f'expected to find "{const_type}" but found "{sdfg.symbols[const_name]}".') else: warnings.warn(f'Found constant "{const_name}" that does not refer to an array or a symbol.') diff --git a/dace/transformation/transformation.py b/dace/transformation/transformation.py index 8c11c5d200..9b4798480b 100644 --- a/dace/transformation/transformation.py +++ b/dace/transformation/transformation.py @@ -311,7 +311,7 @@ def _can_be_applied_and_apply( If `apply` is `True` then the function will apply the transformation, if `verify` is also `True` the function will first call `can_be_applied()` to ensure the - transformation can be applied. If not an error is genrated. + transformation can be applied. If not, an error is generated. If `apply` is `False` the function will only call `can_be_applied()` and returns its result.