-
Notifications
You must be signed in to change notification settings - Fork 50
Semicon merge #131
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
base: master
Are you sure you want to change the base?
Semicon merge #131
Conversation
…ts bugs mercilessly!
…the according times when the jumps happened.
…f overwriting them.
…pin/semispin/qkit into script_based_analysis
…now properly builds x-axis if step is a number which is not an int
…r exceeding max output range.
|
Some notes:
|
|
It looks like a lot of effort went into these changes. Good work! But I will leave some further comments. |
thilokru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall cool, but some major changes are required before this should be merged, in my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this in principle be covered by
qkit/src/qkit/core/instrument_base.py
Line 448 in 133f2f0
| def set_parameter_bounds(self, name, minval, maxval): |
| if type(Pathobj) is not dict or 'authentication' not in Pathobj: | ||
| raise ValueError("Could not find authentication data in you path object. Please make sure your pathobject is a dictionary containing an 'authentication' key.") | ||
|
|
||
| host = "os-login.lsdf.kit.edu" #hard-coded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard coded hosts are not a good idea. Also, I think this should be handled on a file system level and not within qkit.
| "IVgain" : 1e8, | ||
| "in_line_R": 42e3, | ||
| "sampling_rate" : 13732.91015625} | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to fit into qkit source, but should rather be some configuration from the notebook. Note, that in the new installation paradigm of qkit, all files in src/qkit should not be user maintainable.
I recommend moving this either to a configuration option, or make this an argument passed to some function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file would be better in the documentation folder as an example notebook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration method is deprecated.
|
|
||
| import numpy as np | ||
| import json | ||
| from matplotlib.widgets import Cursor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need widgets? Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool that the unified measurement_base gets used. 👍
| @author: hannes.rotzinger@kit.edu 2018 | ||
| @author: marco.pfirrmann@kit.edu 2018 | ||
| @version: 0.1 | ||
| *modified* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
| """ | ||
| ds = hdf_dataset(self.hf, name, x=x, unit=unit, ds_type = ds_types['vector'], | ||
| comment=comment, folder=folder, dim = 1, **meta) | ||
| comment=comment, folder=folder, dtype='float64', dim = 1, **meta) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is dtype=float64 always a sane choice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also be an example notebook, or a template notebook.
|
I think all of your |
|
We also discussed if the ADWin binary files should be included in qkit. On one hand they're absolutely necessary to run the ADWin box, on the other cryptic files should not be part of a public repo. What I did for the "ADWin as SMU" driver some while ago was putting them on the LSDF and link to them in the docstring. Since working with ADWin OOTB is not that simple for a new user anyways, downloading them is just another step in a longer list of TODOs. What I'd propose is we keep the non-compiled FPGA drivers in the extra folder structure as is and add a README with links to either the LSDF or a separate git repo [EDIT: with the compiled binaries]. We should also see if my driver can be refactored to be included in your more extensive environment [EDIT: or if it has become redundant and can be removed]. |
No description provided.