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

fixed a bug in update-streams for non-scalar variables

parent c7deb5df
Branches
Tags 7.0.2
No related merge requests found
Pipeline #238776 passed
......@@ -65,6 +65,11 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
## Recent changes
**7.0.2** - 2023-02-23
- fixed a bug in update-streams for non-scalar variables
**7.0.1** - 2023-02-23
- minor bugfix
......
from setuptools import setup, find_packages
setup(name='wzl-udi',
version='7.0.1',
version='7.0.2',
url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python',
author='Matthias Bodenbenner',
author_email='m.bodenbenner@wzl.mq.rwth-aachen.de',
......
......@@ -136,6 +136,8 @@ class UpdateJob(FixedJob):
value = self._callback()
updated = self._last_value != value
self._last_value = value
if isinstance(updated, list):
updated = any(updated)
return updated
@property
......@@ -158,6 +160,8 @@ class EventJob(FixedJob):
value = self._callback()
updated = self._event.is_triggered(value)
self._last_value = value
if isinstance(updated, list):
updated = any(updated)
return updated
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment