nnaisense / evotorch

Advanced evolutionary computation library built directly on top of PyTorch, created at NNAISENSE.
https://evotorch.ai
Apache License 2.0
997 stars 62 forks source link

fix: `generate_batch` returning `None` #63

Closed engintoklu closed 1 year ago

engintoklu commented 1 year ago

The method Problem.generate_batch(...) was unexpectedly returning None when the keyword arguments center and stdev are provided. The reason for this erroneous behavior was a missing return statement in the code. This pull request fixes the issue by introducing the forgotten return statement.

flukeskywalker commented 1 year ago

Simple enough; Approved. Flagging poetry error @Higgcz

codecov-commenter commented 1 year ago

Codecov Report

Merging #63 (e4f2d0f) into master (aa57024) will decrease coverage by 0.02%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
- Coverage   77.74%   77.73%   -0.02%     
==========================================
  Files          49       49              
  Lines        7321     7322       +1     
==========================================
  Hits         5692     5692              
- Misses       1629     1630       +1     
Impacted Files Coverage Δ
src/evotorch/core.py 74.42% <0.00%> (-0.06%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.