GithubHelp home page GithubHelp logo

rirze / interactive-strong-lensing Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 233 KB

An interactive-slider-demo for a simple gravitational lens.

Python 100.00%
einstein-cross einstein-ring gravitational-lensing gravity simulation

interactive-strong-lensing's People

Contributors

rirze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ccld

interactive-strong-lensing's Issues

interactive_lens.py fails in Anaconda python 3.5 with TK exceptions

I'm trying to run interactive_lens.py on a 64-bit iMac running OS X 10.12.3 (Sierra). Python is v 3.5.2 under Anaconda 4.1.1. It also fails when I revert to Python 2.7.12. I'm using the command line in the terminal window. The interactive Python graphics window appears briefly, then disappears, and these errors appear in terminal:

fiets:interactive-strong-lensing-master james$ python interactive_lens.py
objc[64674]: Class TKApplication is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f188) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31ae40). One of the two will be used. Which one is undefined.
objc[64674]: Class TKMenu is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f1d8) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31c020). One of the two will be used. Which one is undefined.
objc[64674]: Class TKContentView is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f228) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31c8a0). One of the two will be used. Which one is undefined.
objc[64674]: Class TKWindow is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f278) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31cda0). One of the two will be used. Which one is undefined.
Exception in Tkinter callback
Traceback (most recent call last):
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/tkagg.py", line 22, in blit
id(data), colormode, id(bbox_array))
_tkinter.TclError: invalid command name "PyAggImagePhoto"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Applications/anaconda/lib/python3.5/tkinter/init.py", line 1550, in call
return self.func(*args)
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 283, in resize
self.show()
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 355, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/tkagg.py", line 30, in blit
id(data), colormode, id(bbox_array))
_tkinter.TclError
alloc: invalid block: 0x1005ec3b0: 0 0
Abort trap: 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.