Coder Social home page Coder Social logo

pyifu's People

Contributors

jeremylezmy avatar mickaelrigault avatar scizen9 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sedmv2

pyifu's Issues

function returns rad instead of deg

Hi, in .../pyifu/adr.py line 426, the function "airmass_to_zd(airmass)" is supposed to return degrees but it seems to return the angles in radians.
Simple test: ADR.airmass_to_zd(ADR.zd_to_airmass(26)) doesn't returns 26 but ADR.airmass_to_zd(ADR.zd_to_airmass(26))*180/np.pi does.

Recent versions of matplotlib have removed the toolbar._active attribute

This crashes any interactive session that uses pyifu (extractstar.py --display, e.g.) and matplotlib version > 3.2.2

Three interactive functions use this private attribute and must be updated to use Axes.get_navigate_mode() function instead:

OLD (currently crashes in interactive mode):
if self.fig.canvas.manager.toolbar._active is not None:
return

NEW (currently works):
for ax in self.fig.axes:
if ax.get_navigate_mode() is not None:
return
This may not be the most efficient way to use get_navigate_mode(), but it seems to work.

The functions in question are in pyifu/mplinteractive.py:

  1. interact_onclick
  2. interact_onrelease
  3. interact_trackmotion

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.