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

spec: add Matrix datatype #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

spec: add Matrix datatype #8

wants to merge 1 commit into from

Conversation

birkenfeld
Copy link
Member

No description provided.

Copy link
Member Author

@birkenfeld birkenfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename MeasurableController -> Controller, useful also for other procedures

additional open questions: add elapsed time/progress attribute?

``"names"``:
A list of names for each dimension in the data.

``"maxlengths"``:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> maxlen


As a JSON object containing the following items:

``"dims"``:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len

- ``<`` or ``>`` to indicate little or big endianness.
- ``i``, ``u``, ``f`` to indicate signed or unsigned integers or floating
point numbers.
- a number to indicate the number of bytes per element (usually up to 8).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restrict a bit more

Example: ``{"dims": [2, 3], "data": "AACAPwAAAEAAAEBAAACAQAAAoEAAAMBA"}``

The order of the matrix elements is defined so that the dimension with the
fastest running index comes first in ``dims``, ``names`` and ``maxlengths``.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better description?

... first vary the first dimension, then the second and so on...

``"dims"``:
The actual length of each dimension in the data.

``"data"``:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blob

- a number to indicate the number of bytes per element (usually up to 8).

Example: ``"<u4"`` is a little-endian encoded 32-bit unsigned integer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remark: compression possible with new keyword

@@ -119,7 +119,7 @@ Accessibles:
``get_data()``.

``get_data()``
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove parens from commands

@@ -119,7 +119,7 @@ Accessibles:
``get_data()``.

``get_data()``
Optional: returns the channel's matrix data, see below for details.
Optional: returns the channel's matrix data, with a ``matrix`` data type.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Optional: returns the channel's matrix data, with a ``matrix`` data type.
Optional: returns the channel's data, with a ``matrix`` data type.

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

Successfully merging this pull request may close these issues.

1 participant