shreyasbapat / astrool

astrool :rocket: - Astronomy in Python :star:
https://pypi.org/project/astrool/
MIT License
2 stars 0 forks source link

Issue about not showing correct Data for moon is fixed and added Moon as default object,if entered object is not in the database. #6

Closed rtanmay closed 6 years ago

rtanmay commented 6 years ago

Added comments to make program more readable.Also updated and added status when object is just within 10 degrees from the Horizon

Solved Issue #5

rtanmay commented 6 years ago

Fixed the bug, This the correct statement to get the time place.date = datetime.now().strftime('%Y/%m/%d %H:%M:%S')

otherwise earlier time was 00:00:00 so the Data was not shown correct

Solved Issue #4

shreyasbapat commented 6 years ago

The Time thing was not needed. The data shown was correct and was getting updated every second. Because ephem.now() manages it. :)

rtanmay commented 6 years ago

Then what's the point of using strftime() if we have ephem.now()?

Also, which object does it give details about when we enter any random name? I thought it was not mentioned in the code, so I made it the Moon. Please correct me if I am wrong.

Thanks

shreyasbapat commented 6 years ago

Yeah, that I have not looked up for. I am merging this. Now for time, ephem.now() gets the time. But the date has to be given in format of YY/M/D Hence I used it to format the date output.