sshape clarification in SliceIterator
Closed this issue · 3 comments
PierreSachot commented
Hi,
I would like to know what is the sshape in the constructor of a SliceIterator.
Thanks.
PeterC-DLS commented
Hi Pierre,
As mentioned in the source, it is the shape of the sliced dataset. The slice iterator iterates over each point in the sliced dataset so the slice shape is the number of steps spanned in each dimension.
Regards,
Peter
From: PierreSachot [mailto:notifications@github.com]
Sent: 06 April 2017 14:01
To: eclipse/january <january@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [eclipse/january] sshape clarification in SliceIterator (#157)
Hi,
I would like to know what is the sshape in the constructor of a SliceIterator.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#157>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABUVV3XiOu9kQaWp8S93RMT5mQC-C_bCks5rtOIAgaJpZM4M1kMw>.
…--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
PierreSachot commented
Dear Peter,
Thanks a lot for your quick reply, I would like to know an other thing about the start index and the stop index, is those about the dimensions or the values inside of the dimensions ?
Best regards,
Sachot Pierre.
PeterC-DLS commented
Hi Pierre,
These are the same as specified in Python and NumPy: start is inclusive and stop is exclusive. See also the Slice and SliceND classes.
Peter
From: PierreSachot [mailto:notifications@github.com]
Sent: 06 April 2017 14:53
To: eclipse/january <january@noreply.github.com>
Cc: Chang, Peter (DLSLtd,RAL,LSCI) <Peter.Chang@Diamond.ac.uk>; Comment <comment@noreply.github.com>
Subject: Re: [eclipse/january] sshape clarification in SliceIterator (#157)
Dear Peter,
Thanks a lot for your quick reply, I would like to know an other thing about the start index and the stop index, is those about the dimensions or the values inside of the dimensions ?
Best regards,
Sachot Pierre.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#157 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABUVV4asdKquh4OS5LS-X2APm3x9pT91ks5rtO5AgaJpZM4M1kMw>.
…--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom