-
Notifications
You must be signed in to change notification settings - Fork 319
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
complex NumpyJSONEncoder fix #227
Conversation
I think I added a test to the tests, but I am not sure I did this correctly |
and for realism sake: I don't know if a negative bending modulus makes sense, but it would surely make for a special ponytail |
@damazter! Just a quick answer before I look into it for real! Did you On Thu, 9 Jun 2016 at 05:15, damazter [email protected] wrote:
|
@giulioungaretti Hence this has nothing to do with my current pull request, seeing that the tests with travis have passed |
@damazter I'm quite interested in your test failure... any more info you can provide on your platform, complete console output, would be great - but maybe lets diagnose this on slack rather than in this PR as you're right that it's independent. You did a fine job of writing tests for the new code. 🌟 But we should also probably talk about the code itself!
|
…ex numbers using numbers.Complex
@alexcjohnson |
Great, thanks! Those are intermittent failures known to show up on Travis - you're OK. Now that you have The last step to make this reversible with a |
@alexcjohnson Making a decoder is not something that I would know how to do, so I will make an issue for that, for now |
Haha, tests to the rescue! 🐅 Pretty crazy, I guess it makes sense that real is effectively a subclass of complex but... it's also rather annoying! 💃 once there's an issue for the decoder. |
My first contribution into the QCodes core, took me long enough 🎉 |
This pull request fixes an issue that I didn't bother to write, because the fix was shorter than writing the issue. But in Short, when you have a complex parameters that gets logged at the start of the measurement loop, it crashes because the complex value cannot be JSON Serialized
Changes proposed in this pull request:
Add a numpy encoder for complex numbers
I did not run any tests yet, because I don't yet know how to do that. Any explanation on that would be appreciated
EDIT: I see something happening
EDIT2: I see that one test failed, but I cannot understand why, I don't think this it has anything to do with this pull request
EDIT3: I know it is bad practice to keep editing posts, but most of you are sleeping anyway
@alexcjohnson
@giulioungaretti