Skip to content
Snippets Groups Projects
Commit 0e7598a5 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Minor wording changes.

parent e1e32739
No related branches found
No related tags found
No related merge requests found
Pipeline #89937 passed
This commit is part of merge request !195. Comments created here will be created in the context of that merge request.
......@@ -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 = [
......
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment