mmamaev / timeboard Goto Github PK
View Code? Open in Web Editor NEWCalendar calculations over business days and work shifts
License: Other
Calendar calculations over business days and work shifts
License: Other
In Python 3.10 its not working and shows the following error:
Traceback (most recent call last):
File "xxx", line 2, in <module>
import timeboard as tb
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/timeboard/__init__.py", line 7, in <module>
from .timeboard import Timeboard
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/timeboard/timeboard.py", line 2, in <module>
from .core import (_Frame, _Timeline, _Schedule,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/timeboard/core.py", line 11, in <module>
from collections import Iterable, OrderedDict
ImportError: cannot import name 'Iterable' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)
Process finished with exit code 1
This seems to be simmilar to this issue:
noirbizarre/flask-restplus#766
Suppose I am making a calendar for a machine in my company and I want to give the working hours for that to a calender say from morning 6am to evening 6pm how can i do that?
Hi,
This package is awesome. Can it be used in a hotel booking application? To check availability of hotels, rooms etc? Did not see such an application in the example use cases.
Thanks in advance :)
Hi,
I tried to install your package with Python 3.8. I saw that it was not tested for support Python 3.8, but things even worse for me. I couldn't install it because of blocked dependency.
Here is your current requirements.txt:
pandas >=0.22,<=0.24; python_version < '3.6.1'
pandas >=0.22; python_version >= '3.6.1'
numpy >=1.13,<=1.16; python_version < '3.6'
numpy >=1.16; python_version >= '3.6'
python-dateutil>=2.6.1
six
On my system installed:
python --version
Python 3.6.9
But if i use pipdeptree
to check for requirements i see:
pipdeptree -r -p pandas
pandas==0.24.0
- timeboard==0.2.3 [requires: pandas>=0.22,<=0.24]
Where it should say pandas >=0.22
since I use Python 3.6.9.
I believe in your requirements.txt
you have made a mistake. According to PEP 508 Environment Markers python_version
resolves as 3.6 in my case. Where if you want full version info you should use python_full_version
. Which will correctly resolve to 3.6.9 in my case.
I just upgraded to Python 3,6, and installed timeboard to go with this, and am now getting -
FutureWarning: Creating a PeriodIndex by passing range endpoints is deprecated. Use pandas.period_range
instead.
timeboard/calendars/calendarbase.py:51:
timeboard/calendars/calendarbase.py:68:
timeboard/core.py:228:
timeboard/core.py:510:
and -
numpy/core/fromnumeric.py:56: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead
I'm not sure which component has changed to cause this, but I guess pandas. The latter one looks like a mismatch between pandas and numpy, but the first ones suggest changes required in timeboard?
I want to make a schedule for periods over which teachers ( let's say 9 subjects are taught)teach and I want to automatically schedule a timeboard showing schedules that don't clash.A period has 45 minutes. I also want to insert conditions such as the time a particular teacher is available.
Is there a way to save my timeboard to a DB such as PostgreSQL for future use?
Hi I am creating a time board for an application, while creating a calendar for Jan 2021, seems that the current year is still not supported?
jan2021 = clnd('Jan 2021', period='M') jan2021.count()
Interval referenced by Jan 2021
is completely outside Timeboard of 'D': 2000-01-01 -> 2020-12-31
Hi @mmamaev , first of all thanks for such a great package!
Trying different settings for build, I think, very basic schedule. Need to display hourly schedule for a next few weeks for example and have a two different layouts, one for day hours and one for week days, so and can't mix it together.
p.s. asked here, because it can be a useful scenario.
Thanks
`tb.Marker(each='D',at=[{'hours':7,'minutes':15, 'seconds':0}, {'hours':15, 'minutes':45, 'seconds':0}], how='from_start_of_each')
shifts = tb.Organizer(marker=day_parts, structure=[3,1,2])
clnd = tb.Timeboard(base_unit_freq='H',start='01 Apr 2019 00:15', end='01 Apr 2020 00:15', layout=shifts)
`
minutes nor seconds don't even show up in the daily marker, why? is this not a feature? wasted a lot of time over this
A user wants to obtain answers to questions like "What portion of year 2017 has an emplyee X been with the company". Since an employee may have entered or left the company at any time, both within and without, of year 2017, count_periods()
do not fit the task.
The task calls for a calculation over the intersection of two intervals: one for the employee's tenure and the other for the period in question. It can be done manually but the task is quite common to be given a dedicated method.
Hi,
I notice when generating calenders you can mark particular days as holidays. In this case all staff would be off.
Is there the functionality to mark a specific employee as holiday on a specific day?
Thanks.
import timeboard.calendars.UK as UK
clnd = UK.Weekly8x5()
Produces error: TypeError: new() got an unexpected keyword argument start
There doesn't seem to be a way of creating timeboards, either through the calendar or directly
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.