Git Product home page Git Product logo

Comments (2)

aphearin avatar aphearin commented on August 16, 2024

Thanks for catching this @kgb0255. Your example does seem to indicate a problem with this function - I'll take a look ASAP and try out your proposed fix when I do.

from halotools.

aphearin avatar aphearin commented on August 16, 2024

Hi @kgb0255 my apologies for letting this issue get forgotten. But I'm now turning attention to a new release of halotools, and so I've been spending some time this morning sorting through the sign convention issue you raised. I think this may just be due to a misunderstanding of the definition of the sign convention adopted by halotools when defining relative velocities.

Consider the example you gave:

For example, if x1=1, x2=2, v1=1, v2=0, the relative position of particle 1 with respect to particle 2 should be -1, and the relative velocity should be 1

In this example, the particles are moving towards each other, and so their relative velocity should be negative, as returned by halotools, not positive. That convention is explained in this line of the docstring. Does this clarify the issue?

from halotools.

Related Issues (20)

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.