-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numpy...should it actually be a requirement? #91
Comments
Is there a way to make numpy only a requirement for examples? |
It could be listed under the Its not like the examples aren't using other libs right now, numpy would just be another on that list. For example in https://github.com/Galvant/InstrumentKit/blob/dev/instruments/doc/examples/ex_qubitekkcc.py I see |
So I had a bit of a chat last night with @cgranade before I had to go to sleep about this. I forgot that Anyways, assuming we weren't using |
hmm, this is my first attempt to use pint:
|
Just gave it a go, you have to do this: foo = 293 * quantities.Kelvin
foo = foo.to(quantities.degc) On Mar 9, 2016 9:53 AM, "Catherine Holloway" notifications@github.com
|
Minor issue - it's lower-case kelvin, not Kelvin. It seems like you need to first define things as kelvins, which is not intuitive. But maybe we could simply modify our util functions to handle the offset units. |
Blame my phone keyboard for the case mismatch Also checking in py34 real quick it seems you can straight assign to degC
|
Never mind I was wrong. Both just seem to work if you go
|
With #92 done, I'm making good progress on this. Right now I'm making it an optional dep: if numpy is installed, then continue returning |
I really like this idea since it would be nice for oscilloscopes especially to return data as One issue to keep in mind is that many |
All those |
So while I was working away at Python 3 support, I started thinking about
numpy
and how it is currently a dependency. I'm not sure if having it as a strict dependency is providing any benefit.Pros to keeping:
Agilent34410a.r
)Cons to keeping:
python-dev
(for python.h) to be installed for each version of Python that you want to buildnumpy
for (this makes running a suite of unit tests a pain)tox
for running tests (which is my plan right now), thennumpy
will have to be setup in each virtualenv.Thoughts?
The text was updated successfully, but these errors were encountered: