From 0c22caa50f8ed85cd15cf0dd324b7c9e38a6359f Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson <oscar.gustafsson@liu.se> Date: Fri, 17 Feb 2023 21:30:14 +0000 Subject: [PATCH] Minor wording changes. --- b_asic/signal_flow_graph.py | 6 +++--- test/test_sfg.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index 8f119022..43216d62 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -1496,9 +1496,9 @@ class SFG(AbstractOperation): def unfold(self, factor: int) -> "SFG": """ - Unfolds the SFG `factor` times. Returns a new SFG without modifying the original + Unfold the SFG *factor* times. Return a new SFG without modifying the original. - Inputs and outputs are ordered with early inputs first. I.e. for an sfg + Inputs and outputs are ordered with early inputs first. That is for an SFG with n inputs, the first n inputs are the inputs at time t, the next n inputs are the inputs at time t+1, the next n at t+2 and so on. @@ -1509,7 +1509,7 @@ class SFG(AbstractOperation): """ if factor == 0: - raise ValueError("Unrollnig 0 times removes the SFG") + raise ValueError("Unfolding 0 times removes the SFG") # Make `factor` copies of the sfg new_ops = [ diff --git a/test/test_sfg.py b/test/test_sfg.py index 59cda52a..601df109 100644 --- a/test/test_sfg.py +++ b/test/test_sfg.py @@ -1703,6 +1703,6 @@ class TestUnfold: def test_value_error(self, sfg_two_inputs_two_outputs: SFG): sfg = sfg_two_inputs_two_outputs with pytest.raises( - ValueError, match="Unrollnig 0 times removes the SFG" + ValueError, match="Unfolding 0 times removes the SFG" ): sfg.unfold(0) -- GitLab