jondoesntgit / hardware Goto Github PK
View Code? Open in Web Editor NEWPython Wrappers for Hardware used in the Digonnet Lab at Stanford
License: MIT License
Python Wrappers for Hardware used in the Digonnet Lab at Stanford
License: MIT License
This seems to be a problem with the vanilla install of codecov
on windows. To solve this issue, find where codecov
is stored on your local drive:
>>>import codecov
>>>codecov.__file__
Then, in __init__.py
of codecov
, find the line where it says root = quote(root)
and comment it out.
Each instrument should have a base class that it inherits methods like identify
and log_state
from.
Furthermore, instruments should be divided into categories, like function generators, lock-in amplifiers
The README states that one can invoke:
make help
, make test
, make upload
, etc..
This is inaccurate, since make help
isn't a legit target:
λ make help
"help" is not a valid recipe. Type "make" for help
I recommend either updating the README or changing the target in make.bat
. Happy to send in a pull request, just lmk which one you'd prefer.
Currently, this sensitivity is hard-coded to .3, but it would be nice to make this customizable either
Test each instrument with units. Check to see whether conversions work out accordingly. For example, writing in millivolts, volts, hertz, kilohertz, and seeing if what you read back matches what you write.
There's a lot of code in here, that's very redundant. There is probably a way to consolidate a lot of this code.
Especially for two physical devices with slightly different IDs, that can be controlled by the same class.
It would be nice if all of the print
statements in __init__.py
were replaced with logging statements. Also, if the state of each machine could be logged to a file as well.
There are several places where large dictionaries are used:
These could be replaced by enum classes.
Each instrument should have a log_state
method that dumps its state (all of its properties) into the log.
Occasionaly, runing daq.read()
spits out these errors.
Status Code: -200557
in function DAQmxStartTask
DAQmx Error: Specified property cannot be set while the task is running.
It doesn't trigger any exceptions, but terminates the read almost instantly. You end up getting a large zero vector.
Did I miss a step?
λ make test
'py.test' is not recognized as an internal or external command,
operable program or batch file.
oh, looks like a hidden dependency?
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.