diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 17:38:25 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 17:38:25 +0100 |
| commit | c06104bdb103d0833cc5e038ad8134f4f8527707 (patch) | |
| tree | 738110fd0bd5f9f2caa07150dd6bb0e2f58c1f8d /inversion/live.py | |
| parent | 32d8f2017a32186b0bf4a555c9dfda5c192c928b (diff) | |
log args to stderr
Diffstat (limited to 'inversion/live.py')
| -rw-r--r-- | inversion/live.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inversion/live.py b/inversion/live.py index 8e4266c..5401175 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -4,6 +4,7 @@ import glob import h5py import numpy as np import params +import json import tensorflow as tf import tensorflow_probability as tfp import tensorflow_hub as hub @@ -181,7 +182,7 @@ class Listener: def on_get(self): state = self.interpolator.get_state() - sys.stderr.write(state) + sys.stderr.write(json.dumps(state)) sys.stderr.flush() return state |
