Skip to content

End position for 12th house is wrong. #42

@aintHuman

Description

@aintHuman

End position for 12th house ecliptic is not correct.

Should it not equal to the start position of the 1st house ?

I am getting the:
a) End position Ecliptic of 12th house equal to the Start Position Horizon of the 1st house, and
b) End position Horizon of 12th house equal to the Start Position Ecliptic of the 1st house
(ie swapped)

Maybe something to do with the modulo arithmetic in the following function:

utilities/astrology.js

export const constructHouses = (cuspsArray, ascendantDegrees, zodiac, language = 'en') => cuspsArray.map((cuspDegree, index) => {
  const houseId = index + 1;
  return new House({
    ascendantDegrees, eclipticDegreesStart: cuspDegree, eclipticDegreesEnd: cuspsArray[modulo(index + 1, cuspsArray.length + 1)], id: houseId, zodiac, language,
  });
});

Namely when calculating eclipticDegreesEnd, I doubt that it should be cuspsArray.length + 1, rather just cuspsArray.length

Example 1st House

Screen Shot 2023-01-16 at 6 37 39 pm

Example corresponding 12th house

Screen Shot 2023-01-16 at 6 37 30 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions