formatting
This commit is contained in:
parent
b17ada2d67
commit
513f57f74c
|
@ -233,7 +233,10 @@ def _generate_randomized_scenarios():
|
||||||
rng = Random(1336)
|
rng = Random(1336)
|
||||||
|
|
||||||
# go forward 0 or 1 epochs
|
# go forward 0 or 1 epochs
|
||||||
epochs_set = (_epoch_transition(n=0), _epoch_transition(n=1))
|
epochs_set = (
|
||||||
|
_epoch_transition(n=0),
|
||||||
|
_epoch_transition(n=1),
|
||||||
|
)
|
||||||
# within those epochs, go forward to:
|
# within those epochs, go forward to:
|
||||||
slots_set = (
|
slots_set = (
|
||||||
# the first slot in an epoch (see note in docstring about offsets...)
|
# the first slot in an epoch (see note in docstring about offsets...)
|
||||||
|
@ -253,7 +256,10 @@ def _generate_randomized_scenarios():
|
||||||
|
|
||||||
# and preface each block transition with the possible leak transitions
|
# and preface each block transition with the possible leak transitions
|
||||||
# (... either no leak or transition to a leak before applying the block transition)
|
# (... either no leak or transition to a leak before applying the block transition)
|
||||||
leak_transitions = (_no_op_transition, _transition_to_leaking)
|
leak_transitions = (
|
||||||
|
_no_op_transition,
|
||||||
|
_transition_to_leaking,
|
||||||
|
)
|
||||||
scenarios = [
|
scenarios = [
|
||||||
{"transitions": list(t)}
|
{"transitions": list(t)}
|
||||||
for t in itertools.product(leak_transitions, block_transitions)
|
for t in itertools.product(leak_transitions, block_transitions)
|
||||||
|
|
Loading…
Reference in New Issue