Skip to content
Snippets Groups Projects
Commit 4256c92f authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

bug fix for dynamic components mapping

parent f2110de4
No related branches found
No related tags found
No related merge requests found
[![Build](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/badges/master/pipeline.svg)](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
# Python Unified Device Interface
Current stable version: 8.1.0
Current stable version: 8.1.1
Stable legacy version: 5.2.7 **SHOULD NOT BE USED ANYMORE!**
## Installation
......@@ -57,14 +57,16 @@ https://doi.org/10.1117/12.2527461
## Acknowledgements
The authors acknowledge funding from the LaVA project (Large Volume Applications, contract 17IND03 of the
European Metrology Programme for Innovation and Research EMPIR). The EMPIR initiative is co-funded by
the European Union’s Horizon 2020 research and innovation programme and the EMPIR Participating States.
The authors acknowledge funding from the LaVA project (Large Volume Applications, contract 17IND03 of the European Metrology Programme for Innovation and Research EMPIR). The EMPIR initiative is co-funded by the European Union’s Horizon 2020 research and innovation programme and the EMPIR Participating States.
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany's Excellence Strategy – EXC-2023 Internet of Production – 390621612.
## Recent changes
**8.1.1** - 2023-03-15
- bug fix
- resolving the methods of the sensor logic for dynamic components
**8.1.0** - 2023-03-15
- the desired dataformat of the response can be specified with a query parameter now, e.g.,
- ../MEA-Temperature?format=json
......
from setuptools import setup, find_packages
setup(name='wzl-udi',
version='8.1.0',
version='8.1.1',
url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python',
author='Matthias Bodenbenner',
author_email='m.bodenbenner@wzl.mq.rwth-aachen.de',
......
......@@ -262,7 +262,7 @@ class Component(Element):
if implementation is not None:
child_implementation = None
attributes = list(filter(lambda attr: attr[:5] == '_com_', dir(implementation)))
if f'_com_{obj["uuid"][4:].lower()}' in attributes:
if f'_com_{obj["uuid"][4:].lower()}' in attributes and not isinstance(getattr(implementation, f'_com_{obj["uuid"][4:].lower()}'), dict):
child_implementation = getattr(implementation, f'_com_{obj["uuid"][4:].lower()}')
else:
for attr in attributes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment