lukew3 / mathgenerator

A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
https://lukew3.github.io/mathgenerator
MIT License
690 stars 178 forks source link

Stationary points error #347

Open lukew3 opened 3 years ago

lukew3 commented 3 years ago

Name or Id of generator: calculus/stationary_points, 110 Issue:

Traceback (most recent call last):
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/mathgenerator/__init__.py", line 36, in __call__
    return self.func(*args, **kwargs)
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/mathgenerator/funcs/calculus/stationary_points.py", line 14, in stationaryPointsFunc
    if len(solution) != 0:
TypeError: object of type 'Reals' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cli.py", line 84, in <module>
    cli()
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "cli.py", line 47, in auto_generate
    p, a, s = generate_problem(gen_id)
  File "cli.py", line 53, in generate_problem
    prob, ans = mathgen.genById(gen_id)
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/mathgenerator/mathgen.py", line 11, in genById
    return (generator(*args, **kwargs))
  File "/home/luke/todarith/todenv/lib/python3.8/site-packages/mathgenerator/__init__.py", line 40, in __call__
    del kwargs['style']
KeyError: 'style'