diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 17:44:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 17:44:51 +0100 |
| commit | bd05d7912dc7e8b66b90aff04bcfb5bc8b57507a (patch) | |
| tree | 02248338498380144b57511a88815add4db8034a | |
| parent | c06104bdb103d0833cc5e038ad8134f4f8527707 (diff) | |
log args to stderr
| -rw-r--r-- | inversion/live.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inversion/live.py b/inversion/live.py index 5401175..d53bb02 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -151,7 +151,11 @@ class Interpolator: opt = {} for key, param in self.opts.items(): if param.scalar: - opt[key] = param.value + if type(param.value) is np.ndarray: + sys.stderr.write('{} is ndarray'.format(key)) + opt[key] = param.value.tolist() + else: + opt[key] = param.value return opt def set_value(self, key, value): |
