Coder Social home page Coder Social logo

agabrown / astrometry-inference-tutorials Goto Github PK

View Code? Open in Web Editor NEW
32.0 11.0 21.0 21.47 MB

Tutorials on the use of (Gaia) astrometry in astronomical data analysis or inference problems.

License: Other

Jupyter Notebook 95.73% Python 2.14% Stan 0.25% R 1.88%
gaia gaiadr2 use-of-gaia-astrometry-tutorials

astrometry-inference-tutorials's People

Contributors

agabrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astrometry-inference-tutorials's Issues

Using the interface DistanceEstimatorApplication.py

Hi everyone,
I'm trying to use your Distance Estimator interface, I executed "python3.6 DistanceEstimatorApplication.py" in a terminal, and I got the following error:

Traceback (most recent call last):
File "DistanceEstimatorApplication.py", line 13, in
from PIL import ImageTk, Image
ModuleNotFoundError: No module named 'PIL'

I would appreciate if you can help me to solve this problem.

NavigationToolbar2TkAgg no longer available in matplotlib

In DistanceEstimatorApplication.py you import NavigationToolbar2TkAgg but this is no longer available in matplotlib - the current name is NavigationToolbar2Tk. I use the following:

try:
    # NavigationToolbar2TkAgg was deprecated in matplotlib 2.2 and is no
    # longer present in v3.0 - so a version test would also be possible.
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
except ImportError:
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk
except:
    raise

.show is no longer supported for FigureCanvasTkAgg

This is also regarding DistanceEstimatorApplication.py - when showing the PDFs it calls plot_image which uses the show() option to FigureCanvasTkAgg - this is no longer (not sure which matplotlib version) supported and .draw should be used instead. I use:

        if hasattr(dataPlot, 'show'):
            # Deprecated version
            dataPlot.show()
        elif hasattr(dataPlot, 'draw'):
            dataPlot.draw()
        else:
            # Maybe print a warning?
            return

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.