pinnymz / python-zmanim Goto Github PK
View Code? Open in Web Editor NEWPython zmanim library
License: GNU Lesser General Public License v2.1
Python zmanim library
License: GNU Lesser General Public License v2.1
Are there any plans to port over the ComplexZmanimCalendar class from KosherJava? Or is it already implemented elsewhere?
When I run this bit of code
from zmanim.hebrew_calendar.jewish_calendar import JewishCalendar
print(JewishCalendar(5783, 1, 17).day_of_week)
it insists that today is that date (today) is shabbos, which it is not.
Are the calculations off? Or is it a problem on my end?
Different times yield different zmanim.
MWE:
import datetime as dt
from zmanim.util.geo_location import GeoLocation
from zmanim.zmanim_calendar import ZmanimCalendar
location = GeoLocation('Lakewood, NJ', 40.0721087, -74.2400243, 'America/New_York', elevation=15)
print(ZmanimCalendar(geo_location=location, date=dt.datetime(2023,8,7)).shkia())
print(ZmanimCalendar(geo_location=location, date=dt.datetime(2023,8,7,1)).shkia())
Even worse, when no date is passed, the default is a datetime
object with the current time, so
print(ZmanimCalendar(geo_location=location).shkia())
will yield different, incorrect times throughout the day.
As per @pinnymz, ZmanimCalendar
should require a date
object.
While a datetime
object can be coerced to a date
, since the caller may possibly want the next day's zmanim (e.g., if it's after nightfall), we agreed that the input should be restricted to date
object, placing the onus on the caller to decide which date.
PR to follow.
Hi
There is limudim module
But if I install package via pypi, this module is missing. Could you please bump pack version with this module?
Thank you a lot!
When jd.back()
is called and it needs to go a year back
like this:
jd = JewishDate(5781, 1, 1)
jd.back()
or
jd.forward(-1)
I get an error
m = days_of_year.length
AttributeError: 'list' object has no attribute 'length'
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.