pymmcore-plus 0.16.0__py3-none-any.whl → 0.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymmcore_plus/_ipy_completion.py +1 -1
- pymmcore_plus/_logger.py +2 -2
- pymmcore_plus/core/_device.py +37 -6
- pymmcore_plus/core/_mmcore_plus.py +4 -15
- pymmcore_plus/core/_property.py +1 -1
- pymmcore_plus/core/_sequencing.py +2 -0
- pymmcore_plus/experimental/simulate/__init__.py +88 -0
- pymmcore_plus/experimental/simulate/_objects.py +670 -0
- pymmcore_plus/experimental/simulate/_render.py +510 -0
- pymmcore_plus/experimental/simulate/_sample.py +156 -0
- pymmcore_plus/experimental/unicore/__init__.py +2 -0
- pymmcore_plus/experimental/unicore/_device_manager.py +26 -0
- pymmcore_plus/experimental/unicore/core/_config.py +706 -0
- pymmcore_plus/experimental/unicore/core/_unicore.py +830 -17
- pymmcore_plus/experimental/unicore/devices/_device_base.py +13 -0
- pymmcore_plus/experimental/unicore/devices/_hub.py +50 -0
- pymmcore_plus/experimental/unicore/devices/_stage.py +46 -1
- pymmcore_plus/experimental/unicore/devices/_state.py +6 -0
- pymmcore_plus/mda/handlers/_5d_writer_base.py +16 -5
- pymmcore_plus/mda/handlers/_tensorstore_handler.py +7 -1
- pymmcore_plus/metadata/_ome.py +75 -21
- pymmcore_plus/metadata/functions.py +2 -1
- {pymmcore_plus-0.16.0.dist-info → pymmcore_plus-0.17.0.dist-info}/METADATA +5 -3
- {pymmcore_plus-0.16.0.dist-info → pymmcore_plus-0.17.0.dist-info}/RECORD +27 -21
- {pymmcore_plus-0.16.0.dist-info → pymmcore_plus-0.17.0.dist-info}/WHEEL +1 -1
- {pymmcore_plus-0.16.0.dist-info → pymmcore_plus-0.17.0.dist-info}/entry_points.txt +0 -0
- {pymmcore_plus-0.16.0.dist-info → pymmcore_plus-0.17.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -178,3 +178,29 @@ class PyDeviceManager:
|
|
|
178
178
|
for label, device in self._devices.items()
|
|
179
179
|
if dev_type == DeviceType.Any or device.type() == dev_type
|
|
180
180
|
)
|
|
181
|
+
|
|
182
|
+
def get_loaded_peripherals(self, hub_label: str) -> tuple[DeviceLabel, ...]:
|
|
183
|
+
"""Get labels of all loaded devices whose parent is the given hub.
|
|
184
|
+
|
|
185
|
+
Parameters
|
|
186
|
+
----------
|
|
187
|
+
hub_label : str
|
|
188
|
+
The label of the hub device.
|
|
189
|
+
|
|
190
|
+
Returns
|
|
191
|
+
-------
|
|
192
|
+
tuple[DeviceLabel, ...]
|
|
193
|
+
Labels of all loaded devices that have this hub as their parent.
|
|
194
|
+
"""
|
|
195
|
+
# Verify the hub exists and is actually a hub device
|
|
196
|
+
if hub_label not in self._devices:
|
|
197
|
+
return ()
|
|
198
|
+
hub_device = self._devices[hub_label]
|
|
199
|
+
if hub_device.type() != DeviceType.Hub:
|
|
200
|
+
return ()
|
|
201
|
+
|
|
202
|
+
return tuple(
|
|
203
|
+
cast("DeviceLabel", label)
|
|
204
|
+
for label, device in self._devices.items()
|
|
205
|
+
if device.get_parent_label() == hub_label
|
|
206
|
+
)
|