Skip to content

Commit

Permalink
SampleIterator: Fix incorrect use of curly brackets in error strings
Browse files Browse the repository at this point in the history
Clearly needs a test.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely committed Jun 5, 2023
1 parent 686ea8d commit c7f663f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions psyneulink/core/globals/sampleiterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,17 @@ def __init__(self,
.format(repr('step'), repr('num'), repr('function')))
else:
if not np.isclose(num, 1.0 + (stop - start) / step):
raise SampleIteratorError("The {} ({}) and {} ({}} values specified are not comaptible."
raise SampleIteratorError("The {} ({}) and {} ({}) values specified are not comaptible."
.format(repr('step'), step, repr('num'), num))

elif callable(function):
_validate_function(self, function)

if start is not None:
raise SampleIteratorError("Only one of {} ({}) and {} ({}} may be specified."
raise SampleIteratorError("Only one of {} ({}) and {} ({}) may be specified."
.format(repr('start'), start, repr('function'), function))
if step is not None:
raise SampleIteratorError("Only one of {} ({}) and {} ({}} may be specified."
raise SampleIteratorError("Only one of {} ({}) and {} ({}) may be specified."
.format(repr('step'), step, repr('function'), function))
else:
raise SampleIteratorError("{} is not a valid function for {}."
Expand Down

0 comments on commit c7f663f

Please sign in to comment.