Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
[deleted comment]

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Oh crap. This is embarrassing. Here's a patch to fix it (applicable to the 
trunk or stable v2.0.1). Let me know if it works, and whether the values 
returned are correct. It would also be nice if you could test switching between 
ranges.

This problem was due to lack of being able to actually test some of the sensors 
due to lack of hardware. If you have any other sensors marked as untested in 
the docstrings, it would be cool if you could make sure they work with 
nxt-python. Thanks!

Original comment by [email protected] on 23 Jan 2011 at 12:01

  • Changed state: Accepted
  • Added labels: Component-Sensors, OpSys-All, Series-2.x, Usability

Attachments:

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
The patch works, however, you forgot to import the math module(you're calling 
sqrt in EOPD.get_processed_value). After fixing this, the EOPD class works 
without raising exceptions - I don't think the values it's returning are 
correct, though I'm not sure what the units of measurement are for this sensor. 
I'll work some on this later to help fix it. I'll also test the other Hitechnic 
sensors that I have.

Thanks for writing nxt-python, and don't worry about bugs in code you can't 
test - I'm glad I can program my NXT in Python. You might want to try out 
Pylint sometime. I think it would have caught these bugs.   

Original comment by [email protected] on 23 Jan 2011 at 12:27

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Thank you. I'll be releasing a bugfix version once all the bugs in the sensors 
you have are ironed out. This is really helpful!

I'll look at pylint when I get some spare time. As I've told some other people, 
I'm currently rushing to get IPv6 up on my servers and home network before all 
the tunnel brokers are clogged with new accounts and it becomes hard to test 
things. Hurricane Electric is currently estimating 10 days to IPv4 exhaustion. 
What a nice birthday surprise.

Original comment by [email protected] on 23 Jan 2011 at 12:34

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
Fixed in r275.

Original comment by [email protected] on 23 Jan 2011 at 1:18

  • Changed state: Fixed

from nxt-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.