GithubHelp home page GithubHelp logo

Comments (3)

theriftlab avatar theriftlab commented on July 20, 2024

This is a nice idea & ties in with the other request. I'm thinking to add a function in the chart class to calculate things like this on the fly, so you'd do something like:

start, end = natal.next_transit(chart.SATURN, chart.PLUTO, calc.CONJUNCTION)

where the first object is from the calling chart (natal Saturn in this case) and the second object is the real-time transiting planet. Optionally it could take a date to start from, and also have a counterpart previous_transit() function to look back from, so you could check historical transits this way.

It will take some complexity to add in & include things like houses & points etc, but I'm adding it to the ever-growing feature list!

from immanuel-python.

NodBr avatar NodBr commented on July 20, 2024

Your idea is great and it does serve for my two suggestions.

I just wonder how to do it, because of the different speeds of each object.
For example: If it's looking for a moon transit, it will have to be hour-specific. But, if you try it on Pluto, even if you try to scan on a yearly basis, it may take very long to find something.

Maybe using different increments per object?

I'll try code something myself. Sure it won't be a professional-level coding, but maybe it can serve as an inspiration for you to polish it and add to the code.

from immanuel-python.

theriftlab avatar theriftlab commented on July 20, 2024

The average daily speeds of the main planets are in the const/calc.py file which could be a starting point. Things like houses and nodes have a relatively known approximate speed which I could add in somewhere, the only issue I see is with asteroids / fixed stars, although it's probably safe to ignore those for now.

I'd start with getting the current distance between the two points using something like swe.difdegn() then calculating what size of increment to use based on the speed of the fastest of the 2 objects & the distance between them, and shrink the increment size as they get closer.

It'll be a little while before I can take a proper look at this though so code away!

from immanuel-python.

Related Issues (13)

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.