dhoomakethu / panchanga-cli Goto Github PK
View Code? Open in Web Editor NEWCommand line version of drik-panchanga
License: GNU Affero General Public License v3.0
Command line version of drik-panchanga
License: GNU Affero General Public License v3.0
./panchanga_cli
Traceback (most recent call last):
File "./panchanga_cli", line 6, in
run_cli()
File "/Users/sai/Projects/panchanga/panchanga-cli/panchanga/cli/main.py", line 317, in run_cli
print u"\n".join(combined_dabbas)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-111: ordinal not in range(128)
I finding a hard time converting the below code to calculate the last full moon and full moon day. Any help is greatly appreciated. Thanks.
# New moon day: sun and moon have same longitude (0 degrees = 360 degrees difference)
# Full moon day: sun and moon are 180 deg apart
def new_moon(jd, tithi_, opt = -1):
"""Returns JDN, where
opt = -1: JDN < jd such that lunar_phase(JDN) = 360 degrees
opt = +1: JDN >= jd such that lunar_phase(JDN) = 360 degrees
"""
if opt == -1: start = jd - tithi_ # previous new moon
if opt == +1: start = jd + (30 - tithi_) # next new moon
# Search within a span of (start +- 2) days
x = [ -2 + offset/4 for offset in range(17) ]
y = [lunar_phase(start + i) for i in x]
y = unwrap_angles(y)
y0 = inverse_lagrange(x, y, 360)
return start + y0
I am trying to run on Python 3.8 and noticed that its not migrated. Any plans to do so?
Hi Dhoomaketu.
great work. Can you please help me with this error.
[ec2-user@ip-172-31-11-244 panchanga-cli]$ sudo pip install https://github.com/dhoomakethu/pyphoon/tarball/master#egg=pyphoon-1.0
Collecting pyphoon-1.0 from https://github.com/dhoomakethu/pyphoon/tarball/master#egg=pyphoon-1.0
Downloading https://github.com/dhoomakethu/pyphoon/tarball/master
\ 20kB 56.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-A1m8e7/pyphoon-1.0/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-A1m8e7/pyphoon-1.0/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.