Property Data
albert.collections.property_data.PropertyDataCollection
Bases: BaseCollection
Manage Property Data in the Albert platform.
Property Data is the actual measured result values in Albert. It lives in two places, and this collection covers both:
- On a Task: the results captured when a Property Task is executed,
organized per Block, interval combination, and trial. Task methods here are
named
*_task_*/*_interval_*/*_trial_*. - On an Inventory Item: custom property-data values attached directly to a
material (methods named
*_on_inventory). Task-measured results also roll up to the associated inventory item's properties.
Property Data is not Inventory Specs or Attributes. Specs
(client.inventory.get_specs / add_specs, deprecated) and
AttributeCollection
(client.attributes) store inventory reference properties for worksheet
lookup. Use this collection for experimentally measured (or custom PTD)
values.
Intervals and trials. Within a Block, results are addressed by:
- Interval: one specific combination of parameter setpoints (e.g. "measured
at 25°C"). It is identified by an interval ID of the form
ROW1(one intervalized parameter) orROW1XROW2(two). Build this ID from parameter values withget_interval_id, or list the intervals present on a task withcheck_for_task_data. When a block has no intervalized parameters, use the literal"default". - Trial: one replicate measurement of a given interval, identified by an integer trial number.
The void/unvoid methods mirror this hierarchy: void an entire task block, a single interval, or a single trial. Voided data is retained but excluded from results; unvoiding restores it.
Writing results. Use add_properties_to_task for brand-new values,
update_or_create_task_properties to upsert, and
bulk_load_task_properties to load a whole table at once. When adding
trials, supply a trial number only for an existing trial; omit it to create a
new trial, and create new trials one call at a time (loop for many).
This collection is accessed as client.property_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
base_path |
str
|
The base API route for property data requests. |
Methods:
| Name | Description |
|---|---|
get_properties_on_inventory |
Get all property data attached to an inventory item (not Specs/Attributes). |
add_properties_to_inventory |
Add custom property-data values directly to an inventory item. |
update_property_on_inventory |
Update a property-data value on an inventory item. |
get_task_block_properties |
Get the results in one task block for one inventory item. |
get_all_task_properties |
Get results across all block/inventory combinations of a task. |
check_for_task_data |
Report which block/interval combinations of a task have data. |
check_block_interval_for_data |
Report whether one block interval has data. |
add_properties_to_task |
Add new result values to a task block. |
update_property_on_task |
Patch existing result values on a task. |
update_or_create_task_properties |
Upsert result values on a task block. |
bulk_load_task_properties |
Overwrite a task block's results from tabular data. |
bulk_delete_task_data |
Delete a task block's results. |
void_task_data |
Void/unvoid all results in a task block. |
void_interval_data |
Void/unvoid the results of one interval combination. |
void_trial_data |
Void/unvoid the results of one trial. |
search |
Search recorded property data across the platform. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Source code in src/albert/collections/property_data.py
get_properties_on_inventory
get_properties_on_inventory(
*, inventory_id: InventoryId
) -> InventoryPropertyData
Get all property data attached to an inventory item.
This includes both task-measured results that have rolled up to the item
and custom property-data values added directly to it. This is not
Inventory Specs / Attributes (inventory reference properties); for those
use client.inventory.get_specs (deprecated) or
get_by_parent_ids.
For results in the context of a specific task, use
get_task_block_properties
instead.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item to retrieve properties for (format |
required |
Returns:
| Type | Description |
|---|---|
InventoryPropertyData
|
The item's properties, split into task-derived and directly-added data. |
Source code in src/albert/collections/property_data.py
add_properties_to_inventory
add_properties_to_inventory(
*,
inventory_id: InventoryId,
properties: list[InventoryDataColumn],
) -> list[InventoryPropertyDataCreate]
Add custom property-data values directly to an inventory item.
Use this for property-data values known independently of a task (stored as PTD on the item). Each entry targets a data column and carries a value. Properties are added one at a time and collected into the result.
This is not Inventory Specs / Attributes. For inventory reference
properties (worksheet lookup source of truth), use
add_specs
(deprecated) or
add_values.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item to add properties to (format |
required |
properties
|
list[InventoryDataColumn]
|
The properties to add. Each pairs a data column with a value. |
required |
Returns:
| Type | Description |
|---|---|
list[InventoryPropertyDataCreate]
|
The registered properties. |
Source code in src/albert/collections/property_data.py
update_property_on_inventory
update_property_on_inventory(
*,
inventory_id: InventoryId,
property_data: InventoryDataColumn,
) -> InventoryPropertyData
Update a property on an inventory item.
Matches the existing property by its data column and updates its value. If the item has no value yet for that data column, the value is added.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item to update (format |
required |
property_data
|
InventoryDataColumn
|
The data column and new value to set. |
required |
Returns:
| Type | Description |
|---|---|
InventoryPropertyData
|
The item's properties after the update. |
Source code in src/albert/collections/property_data.py
get_task_block_properties
get_task_block_properties(
*,
inventory_id: InventoryId,
task_id: TaskId,
block_id: BlockId,
lot_id: LotId | None = None,
) -> TaskPropertyData
Get the recorded results in one task block for one inventory item.
This is the focused read for a single block/inventory (and optionally lot)
combination. To sweep every combination on a task at once, use
get_all_task_properties.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item whose results to read (format |
required |
task_id
|
TaskId
|
The Property Task the block belongs to (format |
required |
block_id
|
BlockId
|
The block to read (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None (all lots). |
None
|
Returns:
| Type | Description |
|---|---|
TaskPropertyData
|
The results in the block for the given inventory item, organized by interval and trial. |
Source code in src/albert/collections/property_data.py
check_for_task_data
check_for_task_data(
*, task_id: TaskId
) -> list[CheckPropertyData]
Report which block/interval combinations of a task have data.
Returns one entry per block/interval/inventory combination on the task,
each flagging whether data exists (data_exists) and carrying the
interval_id you can pass to the void/unvoid or read methods. This is
the easiest way to discover the interval IDs present on a task.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task to inspect (format |
required |
Returns:
| Type | Description |
|---|---|
list[CheckPropertyData]
|
The data status of each block/interval/inventory combination. |
Source code in src/albert/collections/property_data.py
check_block_interval_for_data
check_block_interval_for_data(
*,
block_id: BlockId,
task_id: TaskId,
interval_id: IntervalId,
) -> CheckPropertyData
Report whether one specific block interval has data.
A single-interval version of check_for_task_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
block_id
|
BlockId
|
The block to check (format |
required |
task_id
|
TaskId
|
The task the block belongs to (format |
required |
interval_id
|
IntervalId
|
The interval combination to check (e.g. |
required |
Returns:
| Type | Description |
|---|---|
CheckPropertyData
|
The data status of the given block interval. |
Source code in src/albert/collections/property_data.py
get_all_task_properties
get_all_task_properties(
*, task_id: TaskId, with_data_only: bool = False
) -> list[TaskPropertyData]
Get recorded results across all block/inventory combinations of a task.
Sweeps every block/inventory/lot combination on the task and returns its
results. For a single known combination, get_task_block_properties
is more direct.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task to retrieve results for (format |
required |
with_data_only
|
bool
|
When True, skip combinations that have no recorded data. Defaults to False (every combination is returned). |
False
|
Returns:
| Type | Description |
|---|---|
list[TaskPropertyData]
|
Results for each block/inventory/lot combination on the task. |
Source code in src/albert/collections/property_data.py
update_property_on_task
update_property_on_task(
*,
task_id: TaskId,
patch_payload: list[PropertyDataPatchDatum],
inventory_id: InventoryId | None = None,
block_id: BlockId | None = None,
lot_id: LotId | None = None,
return_scope: ReturnScope = "task",
) -> list[TaskPropertyData]
Patch existing result values on a task.
This is the low-level update path: it applies a list of explicit patch
operations to values that already exist. For most cases prefer
update_or_create_task_properties (upsert) or
add_properties_to_task (new values), which build the patches for
you.
Example
from albert.resources.property_data import PropertyDataPatchDatum
from albert.core.shared.models.patch import PatchOperation
patch = PropertyDataPatchDatum(
operation=PatchOperation.UPDATE,
id="PTD1",
attribute="value",
new_value="1.5",
old_value="1.2",
)
client.property_data.update_property_on_task(
task_id="TASFOR1", patch_payload=[patch]
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task to update (format |
required |
patch_payload
|
list[PropertyDataPatchDatum]
|
The patch operations to apply. Image and curve values cannot be updated
here; use |
required |
inventory_id
|
InventoryId | None
|
Required when return_scope="block". |
None
|
block_id
|
BlockId | None
|
Required when return_scope="block". |
None
|
lot_id
|
LotId | None
|
Optional context for combo fetches. |
None
|
return_scope
|
Literal[task, block, none]
|
Controls the response. "task" (default) returns all task properties, "block" returns only the affected block/inventory/lot combination, and "none" skips fetching data. |
'task'
|
Returns:
| Type | Description |
|---|---|
list[TaskPropertyData]
|
The task's properties after the update, scoped per |
Source code in src/albert/collections/property_data.py
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | |
void_task_data
void_task_data(
*,
task_id: TaskId,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
) -> None
Void all recorded results in a task block for one inventory item.
Voided data is retained but excluded from results; restore it with
unvoid_task_data. To void a narrower scope, use
void_interval_data or void_trial_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
inventory_id
|
InventoryId
|
The inventory item whose results to void (format |
required |
block_id
|
BlockId
|
The block to void (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
unvoid_task_data
unvoid_task_data(
*,
task_id: TaskId,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
) -> None
Restore previously voided results in a task block for one inventory item.
The inverse of void_task_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
inventory_id
|
InventoryId
|
The inventory item whose results to restore (format |
required |
block_id
|
BlockId
|
The block to unvoid (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
void_interval_data
void_interval_data(
*,
task_id: TaskId,
interval_id: str,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
data_template_id: DataTemplateId | None = None,
) -> None
Void the results of one interval combination in a task block.
Voided data is retained but excluded from results; restore it with
unvoid_interval_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
interval_id
|
str
|
The interval combination to void (e.g. |
required |
inventory_id
|
InventoryId
|
The inventory item whose results to void (format |
required |
block_id
|
BlockId
|
The block to void within (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
data_template_id
|
DataTemplateId
|
Limit voiding to a specific data template. Defaults to None (all). |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
unvoid_interval_data
unvoid_interval_data(
*,
task_id: TaskId,
interval_id: str,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
data_template_id: DataTemplateId | None = None,
) -> None
Restore previously voided results of one interval combination.
The inverse of void_interval_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
interval_id
|
str
|
The interval combination to restore (e.g. |
required |
inventory_id
|
InventoryId
|
The inventory item whose results to restore (format |
required |
block_id
|
BlockId
|
The block to restore within (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
data_template_id
|
DataTemplateId
|
Limit unvoiding to a specific data template. Defaults to None (all). |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
void_trial_data
void_trial_data(
*,
task_id: TaskId,
interval_id: str,
trial_number: int,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
) -> None
Void one trial (replicate) within an interval combination.
The narrowest void scope: a single replicate measurement. Restore it with
unvoid_trial_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
interval_id
|
str
|
The interval combination the trial belongs to (e.g. |
required |
trial_number
|
int
|
The 1-based trial (replicate) number to void. |
required |
inventory_id
|
InventoryId
|
The inventory item whose result to void (format |
required |
block_id
|
BlockId
|
The block to void within (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
unvoid_trial_data
unvoid_trial_data(
*,
task_id: TaskId,
interval_id: str,
trial_number: int,
inventory_id: InventoryId,
block_id: BlockId,
lot_id: LotId | None = None,
) -> None
Restore one previously voided trial (replicate).
The inverse of void_trial_data.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task containing the block (format |
required |
interval_id
|
str
|
The interval combination the trial belongs to (e.g. |
required |
trial_number
|
int
|
The 1-based trial (replicate) number to restore. |
required |
inventory_id
|
InventoryId
|
The inventory item whose result to restore (format |
required |
block_id
|
BlockId
|
The block to restore within (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
add_properties_to_task
add_properties_to_task(
*,
inventory_id: InventoryId,
task_id: TaskId,
block_id: BlockId,
lot_id: LotId | None = None,
properties: list[TaskPropertyCreate],
return_scope: ReturnScope = "task",
) -> list[TaskPropertyData]
Add new result values to a task block.
This path is for new values only; to update existing values or upsert,
use update_or_create_task_properties, and to overwrite a whole
table use bulk_load_task_properties. Each value targets a data
column and an interval combination (build the interval ID with
get_interval_id).
Example
from albert.resources.property_data import TaskPropertyCreate, TaskDataColumn
# Derive the required data column / template from the existing block
block = client.property_data.get_task_block_properties(
inventory_id="INVA9999999", task_id="TASFOR1", block_id="BLK1"
)
column = block.data[0].trials[0].data_columns[0]
new_value = TaskPropertyCreate(
interval_combination="default",
data_column=TaskDataColumn(
data_column_id=column.id, column_sequence=column.sequence
),
value="33.3",
data_template=block.data_template,
)
client.property_data.add_properties_to_task(
inventory_id="INVA9999999",
task_id="TASFOR1",
block_id="BLK1",
properties=[new_value],
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item the results are for (format |
required |
task_id
|
TaskId
|
The task to add results to (format |
required |
block_id
|
BlockId
|
The block to add results to (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
properties
|
list[TaskPropertyCreate]
|
The result values to add. |
required |
return_scope
|
Literal[task, block, none]
|
Controls the response. "task" (default) returns all task properties, "block" returns only the affected block/inventory/lot combination, and "none" skips fetching data. |
'task'
|
Returns:
| Type | Description |
|---|---|
list[TaskPropertyData]
|
The task's results after the add, scoped per |
Notes
To add to an existing trial, set trial_number on the
TaskPropertyCreate; leave it unset to create a new trial. Create new
trials one call at a time (loop for many) to avoid unexpected behavior.
Source code in src/albert/collections/property_data.py
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 | |
update_or_create_task_properties
update_or_create_task_properties(
*,
inventory_id: InventoryId,
task_id: TaskId,
block_id: BlockId,
lot_id: LotId | None = None,
properties: list[TaskPropertyCreate],
return_scope: ReturnScope = "task",
) -> list[TaskPropertyData]
Upsert result values on a task block.
Updates values that already exist and adds those that do not, in a single
call. This is the recommended general-purpose write method; use
add_properties_to_task when you know all values are new, or
bulk_load_task_properties to overwrite an entire table. Handles
image and curve values, which update_property_on_task cannot.
Example
from albert.resources.property_data import TaskPropertyCreate, TaskDataColumn
block = client.property_data.get_task_block_properties(
inventory_id="INVA9999999", task_id="TASFOR1", block_id="BLK1"
)
column = block.data[0].trials[0].data_columns[0]
value = TaskPropertyCreate(
interval_combination="default",
data_column=TaskDataColumn(
data_column_id=column.id, column_sequence=column.sequence
),
value="42",
trial_number=1,
data_template=block.data_template,
)
client.property_data.update_or_create_task_properties(
inventory_id="INVA9999999",
task_id="TASFOR1",
block_id="BLK1",
properties=[value],
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The inventory item the results are for (format |
required |
task_id
|
TaskId
|
The task to write to (format |
required |
block_id
|
BlockId
|
The block to write to (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
properties
|
list[TaskPropertyCreate]
|
The result values to update or create. |
required |
return_scope
|
Literal[task, block, none]
|
Controls the response. "task" (default) returns all task properties, "block" returns only the affected block/inventory/lot combination, and "none" skips fetching data. |
'task'
|
Returns:
| Type | Description |
|---|---|
list[TaskPropertyData]
|
The task's results after the upsert, scoped per |
Notes
To target an existing trial, set trial_number on the
TaskPropertyCreate; leave it unset to create a new trial. Create new
trials one call at a time (loop for many) to avoid unexpected behavior.
Source code in src/albert/collections/property_data.py
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 | |
bulk_load_task_properties
bulk_load_task_properties(
*,
inventory_id: InventoryId,
task_id: TaskId,
block_id: BlockId,
property_data: BulkPropertyData,
interval="default",
lot_id: LotId = None,
return_scope: ReturnScope = "task",
) -> list[TaskPropertyData]
Overwrite a task block's results from tabular data.
The fastest way to load a full table of results for one interval. Build the
BulkPropertyData from a DataFrame with BulkPropertyData.from_dataframe.
.. warning:: This overwrites any existing results for the targeted interval. Column names in the data must exactly match the data column names (case-sensitive).
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inventory_id
|
InventoryId
|
The ID of the inventory. |
required |
task_id
|
TaskId
|
The ID of the task. |
required |
block_id
|
BlockId
|
The ID of the block. |
required |
lot_id
|
LotId
|
The ID of the lot, by default None. |
None
|
interval
|
str
|
The interval combination to load into (e.g. |
'default'
|
property_data
|
BulkPropertyData
|
Column-wise data holding all rows for a single interval. Create it with
|
required |
return_scope
|
Literal[task, block, none]
|
Controls the response. "task" (default) returns all task properties, "block" returns only the affected block/inventory/lot combination, and "none" skips fetching data. |
'task'
|
Returns:
| Type | Description |
|---|---|
list[TaskPropertyData]
|
The task's results after the load, scoped per |
Source code in src/albert/collections/property_data.py
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 | |
bulk_delete_task_data
bulk_delete_task_data(
*,
task_id: TaskId,
block_id: BlockId,
inventory_id: InventoryId,
lot_id: LotId | None = None,
interval_id=None,
) -> None
Delete a task block's results.
Permanently removes results for the block/inventory combination (optionally
narrowed to one interval). To hide data reversibly instead of deleting it,
use the void methods (void_task_data, void_interval_data).
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
TaskId
|
The task to delete results from (format |
required |
block_id
|
BlockId
|
The block to delete results from (format |
required |
inventory_id
|
InventoryId
|
The inventory item whose results to delete (format |
required |
lot_id
|
LotId
|
A specific lot of the inventory item. Defaults to None. |
None
|
interval_id
|
IntervalId
|
Limit deletion to one interval combination (e.g. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/property_data.py
search
search(
*,
result: str | None = None,
text: str | None = None,
order: OrderBy | None = None,
order_by: OrderBy | None = None,
sort_by: str | None = None,
inventory_ids: list[SearchInventoryId]
| SearchInventoryId
| None = None,
project_ids: list[SearchProjectId]
| SearchProjectId
| None = None,
lot_ids: list[LotId] | LotId | None = None,
data_template_ids: DataTemplateId
| list[DataTemplateId]
| None = None,
data_column_ids: DataColumnId
| list[DataColumnId]
| None = None,
sheet_ids: list[str] | None = None,
category: list[DataEntity] | DataEntity | None = None,
data_templates: list[str] | str | None = None,
data_columns: list[str] | str | None = None,
parameters: list[str] | str | None = None,
parameter_group: list[str] | str | None = None,
parameter_set: list[str] | None = None,
unit: list[str] | str | None = None,
created_by: str | list[str] | None = None,
task_created_by: list[UserId] | UserId | None = None,
updated_by: str | list[str] | None = None,
from_created_at: str | None = None,
to_created_at: str | None = None,
from_updated_at: str | None = None,
to_updated_at: str | None = None,
search_field: list[str] | None = None,
source_field: list[str] | None = None,
facet_list: list[str] | None = None,
return_fields: list[str] | str | None = None,
return_facets: list[str] | str | None = None,
max_items: int | None = None,
) -> Iterator[PropertyDataSearchItem]
Search recorded property data across the platform.
Searches measured results platform-wide (not scoped to a single task) and
returns lightweight search items. The result parameter accepts a
compact result-query syntax for filtering by measured value under a
condition. Results are returned as a lazily paginated iterator.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
str
|
Result-value query, e.g. |
None
|
text
|
str
|
Free text search across all fields. |
None
|
order
|
OrderBy
|
Sort direction (ascending/descending). |
None
|
order_by
|
OrderBy
|
Alternate sort-direction parameter supported by the search API. |
None
|
sort_by
|
str
|
Field to sort results by. |
None
|
inventory_ids
|
SearchInventoryId or list[SearchInventoryId]
|
Filter by inventory IDs. |
None
|
project_ids
|
SearchProjectId or list[SearchProjectId]
|
Filter by project IDs. |
None
|
lot_ids
|
LotId or list[LotId]
|
Filter by lot IDs. |
None
|
data_template_ids
|
DataTemplateId or list[DataTemplateId]
|
Filter by data template IDs. |
None
|
data_column_ids
|
DataColumnId or list[DataColumnId]
|
Filter by data column IDs. |
None
|
sheet_ids
|
list[str]
|
Filter by sheet IDs. |
None
|
category
|
DataEntity or list[DataEntity]
|
Filter by data entity categories. |
None
|
data_templates
|
str or list[str]
|
Filter by data template names. |
None
|
data_columns
|
str or list[str]
|
Filter by data column names. |
None
|
parameters
|
str or list[str]
|
Filter by parameter names. |
None
|
parameter_group
|
str or list[str]
|
Filter by parameter group names. |
None
|
parameter_set
|
list[str]
|
Filter by parameter, unit, and parameter-group combinations. |
None
|
unit
|
str or list[str]
|
Filter by unit names. |
None
|
created_by
|
str or list[str]
|
Filter by creator. Accepts user display name(s) or UserId(s) (e.g.
|
None
|
task_created_by
|
UserId or list[UserId]
|
Filter by user IDs who created the task. |
None
|
updated_by
|
str or list[str]
|
Filter by user(s) who last updated the data. Accepts UserId(s) only
(e.g. |
None
|
from_created_at
|
str
|
Only include records created on or after this date (ISO 8601). |
None
|
to_created_at
|
str
|
Only include records created on or before this date (ISO 8601). |
None
|
from_updated_at
|
str
|
Only include records updated on or after this date (ISO 8601). |
None
|
to_updated_at
|
str
|
Only include records updated on or before this date (ISO 8601). |
None
|
search_field
|
list[str]
|
Restrict which fields the text query searches. |
None
|
source_field
|
list[str]
|
Restrict which fields are returned in the response. |
None
|
facet_list
|
list[str]
|
Fields to include in search facets. |
None
|
return_fields
|
str or list[str]
|
Deprecated and ignored. Use |
None
|
return_facets
|
str or list[str]
|
Deprecated and ignored. Use |
None
|
max_items
|
int
|
Maximum number of items to return in total. If None, iterates over all matches. |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[PropertyDataSearchItem]
|
A lazily paginated iterator of matching property data search items. |
Source code in src/albert/collections/property_data.py
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 | |