-
Notifications
You must be signed in to change notification settings - Fork 300
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
DataSet array_id names #184
Comments
In my testing I also ran into this (
|
One of the main things I have noticed when working with the dataset is that I was missing an indication of what parameters were set and which ones were get. As I mentioned in #179 I am a big fan of replacing the dictionary like structure with an ordered dict like structure. Such that even when the names of the parameters are unknown we can just pass it to a plotting function and it plots it the way we expect. I think having clearer naming of the array_id is a good idea. I think this should be automated for sure so that the extra typing should not be a real issue. I do think some of the things you propose are an overkill. I think I am a bit confused by your example @MerlinSmiles , You have Also did you add a new repr to the datset? The thing you print looks a bit better than what I tested with, but I can be mistaken. |
@MerlinSmiles added this in the metadata branch #107 - which I still have some work to do on but it's getting close to ready. Close enough that it would be great if you want to take a look at it for functionality while I work on the loose ends.
👍 We will need to figure out how to encode this in the formatters, so you get the same order on reload, but that would definitely be nicer.
Make it
Yes, @MerlinSmiles added that to #107 as well. |
I dont suggest too much, add an
Me too, constantly, which is why I changed the
How? Can we do this currently? the
Volt is the parameter name of that two keithleys and two dmms I use there. Its the unit too, and it is recurring because all parameters |
Closed by #234 - please play with this and make a new issue if you would like something to change. |
Add `set_before_sweep` to `do2d` for new Dataset
When measured and set parameters are added to a
DataSet
, a uniquearray_id
is created, based on thename
of the parameter, and the index in the measurement, and sometimes if the parameter is a setpoint.This can lead to rather confusing situations, if you have many instruments with parameters of the same name. I guess it will be rather typical to have many parameters called i.e.
volt
.In the example here I sweep some voltage channels, and I read some others:
The DataSet looks like this:
Basically all of these parameter names are
volt
and some are converted in another parameter which returns 'volt' and 'volt_raw'.You see that the id's get additions of the index in the loop, the setpoints get another addition of
_set
which they only do, if avolt
is present in the measured values.So If I were to remove the voltage measurements, and do current measurements, the
_set
s would disappear.I find this whole behavior rather confusing, as it changes when only changing small things in a loop, And I have no Idea which
array_id
belongs to which parameter I measured.In the metadata #93 branch the snapshot contains the information of the parameter and instruments, so it is possible to extract the info, but that doesn't help if I want to add a plot right with the data. Without every time checking the naming of the ids and trying to relate it to what exactly I measured.
Even though I'm a big fan of less typing, I'd like to change this behavior so that the
array_id
s get a clearer naming.what about
Even with this scheme there might be confusion, it would be ugly to always add the index, as it would only be needed when the same parameter is measured several times.
Also names could become very long. And also we can have non-unique instrument names (different topic, but that we should also force to not be allowed).
Another way to go about this, is to add a
Get(param, array='Vbg')
there is actually a discussion onGet()
in #26. However, I see this as an optional addition, with a fallback to clear names if it is not used.I cannot really come up with a very neat solution, and would like to hear from others and @alexcjohnson how you think about this!
edit: Measure -> Get as per #26
The text was updated successfully, but these errors were encountered: