Comments (8)
I'd say
midpoint = round((low + high) / 2)
@sde1000 ?
from python-dali.
Hi
Its a python 3 issue:
In Python 3, / is float division
In Python 2, / is integer division (assuming int inputs)
In both 2 and 3, // is integer division
from python-dali.
...and you can get the python 3 behaviour in python 2 using from __future__ import division
python-dali doesn't support python 3 at the moment. I will be fixing this before the end of November because I need python 3 support myself!
from python-dali.
Thanks. I have been modifying the code to run with Python 3 and an RS232 interface.
Do you expect the find ballast process to be quite slow?
from python-dali.
Depending on the number of ballasts, yes it is slow.
from python-dali.
Using python3 (trying to integrate DALI into home-assistant.io) and except for this all works in python3
from python-dali.
Commit 27f8909 which I've just pushed may help with this.
If it doesn't, can you let me know how it's failing? I don't have a test environment set up at the moment; I need to buy another DALI interface...
from python-dali.
well I fixed it myself in the example code :) didn't notice there were more about it in the code.
Thanks for all your work!
from python-dali.
Related Issues (20)
- As of python 3.10, the *loop* parameter was removed from Event() and BoundedSemaphore() of asyncio HOT 2
- Managing DALI gear through abstractions HOT 7
- TypeError: __init__() got an unexpected keyword argument 'loop' HOT 7
- dali.tests.test_dummy.DummyDriverFixtureParts.log HOT 1
- LUBA USB driver query HOT 16
- Device commisioning HOT 3
- Tridonic Connection in Windows HOT 2
- No module named 'dali.interface' HOT 1
- Lunatone HID: occasional stuck communication, and `assert current_command == None` in `dali/driver/hid.py:592`
- Using python-dali as a slave, not a master HOT 1
- Device instance type HOT 4
- ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it HOT 1
- ERROR: AttributeError: 'TridonicDALIUSBNoResponse' object has no attribute 'value' HOT 9
- Lunatone DALI MC4L HOT 2
- Getting error ConnectionRefusedError: [Errno 111] Connection refused HOT 10
- How to use the Commissioning sequence with SyncHassebDALIUSBDriver? HOT 7
- Advise request for a dali illumination sensor
- Who is relying on the exceptions raised by dali.frame? HOT 2
- Schedule for dropping support for Python 3.6 HOT 3
- Bug in querying scene levels using Hasseb interface HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-dali.