Giter Club home page Giter Club logo

qpoint's People

Contributors

annegambrel avatar arahlin avatar ivanpadilla7 avatar mhasself avatar mreineck avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

qpoint's Issues

Support python3-is-not-python

I am trying to integrate qpoint into a Docker container. In our base:

  • python is python2, not python3.
  • numpy and astropy will be installed and ready in the python3 system, not python2.

The problem is that src/make_iers_bulletin_a_dot_c.py is invoked with python, and I need it to be invoked with python3.

Ideally (?) setup.py would cause that script to be launched with the same interpreter that was used to launch setup.py. Alternately, if src/Makefile used the $(PYTHON) make variable instead of python that would be good enough for my purposes!

build_log.txt

Broadcasting and scalars lead to numpy warning

Sort of a two-part issue here...

(a) The docs for azel2bore say the argument vectors need to be arrays with the same shape... but in fact broadcasting is supported. Would be great if this were officially documented.

(b) The broadcasting triggers a numpy warning if there's a mix of scalars and arrays. For example, this code:

import qpoint
import numpy as np

qp = qpoint.QPoint()
az, el, t = 90., 50., 1570000000.

print('test 1')
Q = qp.azel2bore(az, el, None, None,
                 lon=160., lat=-22., ctime=t)

print('test 2')
az, el, t = [np.array([_x]) for _x in [az,el,t]]
Q = qp.azel2bore(az, el, None, None,
                 lon=160., lat=-22., ctime=t)
print('done')

yields this output:

test 1
test 2
/home/mhasse/.local/lib/python3.7/site-packages/qpoint/_libqpoint.py:707: FutureWarning: future versions will not create a writeable array from broadcast_array. Set the writable flag explicitly to avoid this warning.
  arg.flags['WRITEABLE'] << 2 |
done

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.