Sequences
Sequence
A sequence is an ordered set of datasets that are linked together.
This can be used to identify similar datasets when having multiple iterations of the same experiment for example. A sequence can contain multiple datasets, but a dataset can only be part of a single sequence.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope_uid
|
UID
|
UID of the scope in which to create the sequence. |
required |
name
|
NonEmptyString256
|
Name of the sequence. |
required |
uid
|
Optional[UID]
|
Optionally, UID of the sequence. Defaults to the sequence name. |
None
|
create
Create the local sequence in QDL.
Raises:
| Type | Description |
|---|---|
QdlSdkException
|
HTTP error code with description. |
description
property
writable
Description of the sequence.
exists
classmethod
Check if the sequence with the given scope UID and UID exists in QDL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope_uid
|
UID
|
Scope UID of the sequence. |
required |
uid
|
UID
|
UID of the sequence. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True when the sequence exists, otherwise False. |
Raises:
| Type | Description |
|---|---|
QdlSdkException
|
HTTP error code with description. |
get
classmethod
Get the sequence with the given scope UID and UID from QDL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope_uid
|
UID
|
Scope UID of the sequence. |
required |
uid
|
UID
|
UID of the sequence. |
required |
Returns:
| Type | Description |
|---|---|
Sequence
|
Sequence instance from QDL. |
Raises:
| Type | Description |
|---|---|
QdlSdkException
|
HTTP error code with description. |
is_mutable
property
writable
Flag that tells if the sequence is mutable.
Notes
Datasets can only be added to or removed from mutable sequences.
list
classmethod
Get the sequence(s) with the given scope UID from QDL.
Optionally, add additional filters as keyword arguments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope_uid
|
UID
|
Scope UID of the sequence(s). |
required |
Other Parameters:
| Name | Type | Description |
|---|---|---|
uid |
str
|
UID of the sequence. |
name |
str
|
Name of the sequence(s). |
uuid |
str
|
UUID of the sequence. |
dataset_uid |
str
|
UID of a dataset which is part of the sequence. |
Returns:
| Type | Description |
|---|---|
List[Sequence]
|
List with the (filtered) sequence instance(s) from QDL. Returns an empty list when no matches are found. |
Raises:
| Type | Description |
|---|---|
QdlSdkException
|
HTTP error code with description. |
name
property
writable
Name of the sequence.
scope
property
writable
Scope UID of the sequence.
uid
property
writable
UID of the sequence.
update
Update the sequence in QDL with the changes from the local sequence.
Raises:
| Type | Description |
|---|---|
QdlSdkException
|
HTTP error code with description. |
Notes
- An error is raised when the sequence does not yet exist in QDL.
- The scope UID, UID, and UUID of the sequence cannot be updated.
uuid
property
writable
UUID of the sequence.