GithubHelp home page GithubHelp logo

Comments (4)

theriftlab avatar theriftlab commented on June 22, 2024

There is no aspect detected between the Sun and Mars for that date. The key error just means there is no entry for Mars in the Sun's aspect list. A safer way to output aspects:

from immanuel import charts
from immanuel.const import chart


native = charts.Subject(
    date_time='1992-01-14 12:00:06',
    latitude='57N00',
    longitude='00W00',
)

natal = charts.Natal(native)

# Output aspects to Sun only
for aspect in natal.aspects[chart.SUN].values():
    print(aspect)

# ...or output all aspects
for index, aspects in natal.aspects.items():
    print(f'Aspects for {natal.objects[index].name}:')

    for aspect in aspects.values():
        print(f' - {aspect}')

from immanuel-python.

sunny3721BABY avatar sunny3721BABY commented on June 22, 2024

Thank you very much for your work. The following piece of code is not working. Could you please take a look at it for me? Thank you very much!
from immanuel import charts
from immanuel.const import chart

def SearchKiteJupiter():
# Search for astrological kite configurations with Jupiter as the vertex.
native = charts.Subject(
date_time='2022-04-14 13:00:00',
latitude='57N00',
longitude='00W00',
)

natal = charts.Natal(native)
pointseq = []
# seq-->1.jupiter--SEXTILE--2.unknownpoint--TRINE--3.point(and oppo-->1.jupiter)--TRINE--4.unknownpoint
for aspect in natal.aspects[chart.JUPITER].values():
    pointseq.append(aspect._active_name) if aspect.type == "Sextile" else None
    pointseq2 = aspect._active_name if aspect.type == "Opposition" else None
    for aspect2 in natal.aspects[chart.[pointseq[0]]].values():

        pointseq3 = aspect2._active_name if aspect2.type == "Trine" and aspect2._active_name == pointseq2 else None
        for aspect3 in natal.aspects[chart.[pointseq3]].values():
            pointseq.append(aspect3._active_name) if aspect3.type == "Trine" else None

close = natal.aspects[pointseq[0]][pointseq[1]]

return "kite_j" if close.type == "Sextile" else None

from immanuel-python.

theriftlab avatar theriftlab commented on June 22, 2024

I have purposely avoided including aspect patterns in Immanuel simply because of the complexity involved in calculating them accurately. This is due to the chart objects having different orbs and aspect rules, so what initially looks like a kite might not really be a kite.

Taking Jupiter as an example: Jupiter might oppose a certain object and trine two others (one on each side) which looks like a kite, but the opposing object is not always guaranteed to sextile those same two others. Differing orbs and rules might mean it aspects one and not the other, or neither of them. Often there are multiple objects opposing and trining/sextiling, and in that case every combination will need to be checked. The complexity grows exponentially with every added object.

It is of course possible, but not something I am ready to tackle just yet!

from immanuel-python.

sunny3721BABY avatar sunny3721BABY commented on June 22, 2024

It's quite difficult for a beginner like me. Thank you for your advice and good luck!

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.