Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created May 31, 2018 14:47
Show Gist options
  • Save thomasaarholt/f89fc41a08ac7caa2b8a53c4649b621e to your computer and use it in GitHub Desktop.
Save thomasaarholt/f89fc41a08ac7caa2b8a53c4649b621e to your computer and use it in GitHub Desktop.
Traceback from an tanh overflow warning
File "D:\Anaconda\envs\py36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\Anaconda\envs\py36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel_launcher.py", line 16, in <module>
app.launch_new_instance()
File "D:\Anaconda\envs\py36\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\kernelapp.py", line 486, in start
self.io_loop.start()
File "D:\Anaconda\envs\py36\lib\site-packages\tornado\platform\asyncio.py", line 127, in start
self.asyncio_loop.run_forever()
File "D:\Anaconda\envs\py36\lib\asyncio\base_events.py", line 422, in run_forever
self._run_once()
File "D:\Anaconda\envs\py36\lib\asyncio\base_events.py", line 1432, in _run_once
handle._run()
File "D:\Anaconda\envs\py36\lib\asyncio\events.py", line 145, in _run
self._callback(*self._args)
File "D:\Anaconda\envs\py36\lib\site-packages\tornado\platform\asyncio.py", line 117, in _handle_events
handler_func(fileobj, events)
File "D:\Anaconda\envs\py36\lib\site-packages\tornado\stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "D:\Anaconda\envs\py36\lib\site-packages\zmq\eventloop\zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "D:\Anaconda\envs\py36\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "D:\Anaconda\envs\py36\lib\site-packages\zmq\eventloop\zmqstream.py", line 432, in _run_callback
callback(*args, **kwargs)
File "D:\Anaconda\envs\py36\lib\site-packages\tornado\stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell
handler(stream, idents, msg)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\ipkernel.py", line 208, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "D:\Anaconda\envs\py36\lib\site-packages\ipykernel\zmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "D:\Anaconda\envs\py36\lib\site-packages\IPython\core\interactiveshell.py", line 2662, in run_cell
raw_cell, store_history, silent, shell_futures)
File "D:\Anaconda\envs\py36\lib\site-packages\IPython\core\interactiveshell.py", line 2785, in _run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "D:\Anaconda\envs\py36\lib\site-packages\IPython\core\interactiveshell.py", line 2903, in run_ast_nodes
if self.run_code(code, result):
File "D:\Anaconda\envs\py36\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-73-12629afd3b32>", line 17, in <module>
data = numpyexp(E, THETA, dielectric_function, BEAM_ENERGY, thickness)
File "D:\Anaconda\envs\py36\lib\site-packages\sympy\utilities\lambdify.py", line 444, in wrapper
return funcarg(*newargs, **kwargsx)
File "<string>", line 1, in <lambda>
File "D:\Anaconda\envs\py36\lib\warnings.py", line 99, in _showwarnmsg
msg.file, msg.line)
File "<ipython-input-71-d602e1b4df11>", line 8, in warn_with_traceback
traceback.print_stack(file=log)
D:\Anaconda\envs\py36\lib\site-packages\numpy\__init__.py:1: RuntimeWarning: overflow encountered in tanh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment