(Translated by https://www.hiragana.jp/)
Math Domain Error · Issue #38 · flatangle/flatlib · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math Domain Error #38

Open
jminutaglio opened this issue Feb 9, 2020 · 4 comments
Open

Math Domain Error #38

jminutaglio opened this issue Feb 9, 2020 · 4 comments

Comments

@jminutaglio
Copy link

Using flatlib input:

date = Datetime('1990/06/11', '07:31', '-05:00')
pos = GeoPos('71N17', '157w47') 
chart = Chart(date, pos, hsys='Whole Sign', IDs=const.LIST_OBJECTS)
mars = chart.get(const.MARS)
marshouse = chart.houses.getObjectHouse(mars)
print(marshouse)

I get output:

"Error: function terminated. Recommended action: inspect logs for termination reason. Details:
math domain error" 

Date 1990/07/11 has the same result, but 1990/05/11 or 1990/08/11 produced the expected output. Any ideas?

ty!

@jminutaglio
Copy link
Author

hi! Was this addressed/fixed?

@joaoventura
Copy link
Contributor

It is still not fixed, reopening...

@joaoventura joaoventura reopened this Apr 5, 2021
@joaoventura
Copy link
Contributor

joaoventura commented Apr 7, 2021

Just checked a little bit better this bug, and these are the kind of things that are hard to fix because of the high latitude. Basically, to compute PoF we need to know if this is a day or night chart. And at these latitudes, the function to compute the diurnal arcs fails.

I'll leave this bug open, but I do not have an immediate solution for it..

@jminutaglio
Copy link
Author

TY.

Some questions:

  • is there a workaround?
  • Do you know at what LAT the failure occurs? Is it 'every high lat' or just certain lat/lon combos?
  • Why is it failing on one date, but not another for the same lat/lon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants