diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index 8f119022ae5057385627f6026aa78f5450e96e8b..43216d627c85a65c8a121fef1f47309a26b26322 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 59cda52abbd7ced4b18704d48556c042d3452f14..601df1099a2b4b6a5b1dd9eddfa172ae92f5bdde 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)