Skip to content
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

DataArray subset #21

Open
peendebak opened this issue Sep 5, 2016 · 1 comment
Open

DataArray subset #21

peendebak opened this issue Sep 5, 2016 · 1 comment

Comments

@peendebak
Copy link

At the moment there is no functionality to make a subset of a DataSet or DataArray, e.g. if data have a DataSet with a 2D data array amplitude and setpoint arrays x, y one should be able to do

subdataset = dataset.subset('amplitude', 0:10, 0:30) 

assert(subdataset.x.size==10)
assert(subdataset.y.shape==(10, 30) )

Some questions

  • Which notation do we want to use?
  • Do we copy the metadata, or just create an empty metadata?
@AdriaanRol
Copy link

@peendebak I think this is indeed an important feature, to answer your qeustions.

  1. I don't know what notation to use, also keep in mind that we may want this to support more abstract operations than just taking one array slicing it.
  2. I'd say the metadata should be copied, potentially with the addition of referencing the original file and the commands used to subset it.

@jenshnielsen jenshnielsen transferred this issue from microsoft/Qcodes Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants