diff options
author | Gemma Fardell <47746591+gfardell@users.noreply.github.com> | 2019-10-29 15:46:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-29 15:46:32 +0000 |
commit | 7296dfbd1cba5c055b276ba099d32827c7024dd4 (patch) | |
tree | caf862b1c5f25bcb5d0170d07ee5e777b19192c7 | |
parent | c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0 (diff) | |
download | framework-7296dfbd1cba5c055b276ba099d32827c7024dd4.tar.gz framework-7296dfbd1cba5c055b276ba099d32827c7024dd4.tar.bz2 framework-7296dfbd1cba5c055b276ba099d32827c7024dd4.tar.xz framework-7296dfbd1cba5c055b276ba099d32827c7024dd4.zip |
Bug fix: Input data change updates mtime (#416)
-rwxr-xr-x | Wrappers/Python/ccpi/framework/framework.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Wrappers/Python/ccpi/framework/framework.py b/Wrappers/Python/ccpi/framework/framework.py index 0a0baea..01ce7ef 100755 --- a/Wrappers/Python/ccpi/framework/framework.py +++ b/Wrappers/Python/ccpi/framework/framework.py @@ -1309,6 +1309,9 @@ class DataProcessor(object): if issubclass(type(dataset), DataContainer): if self.check_input(dataset): self.__dict__['input'] = dataset + self.__dict__['mTime'] = datetime.now() + else: + raise ValueError('Input data not compatible') else: raise TypeError("Input type mismatch: got {0} expecting {1}"\ .format(type(dataset), DataContainer)) |