mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 18:33:01 +00:00
pretrain-plot: handle open w -> r
This commit is contained in:
parent
1103ae5561
commit
a5f03390ef
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ def run(args):
|
||||||
sys.stderr.write(f"\n\n>>> This is TensorFlow {tf.__version__}\n\n\n")
|
sys.stderr.write(f"\n\n>>> This is TensorFlow {tf.__version__}\n\n\n")
|
||||||
|
|
||||||
embeddings = []
|
embeddings = []
|
||||||
with handle_open(filepath_input, "w") as handle:
|
with handle_open(filepath_input, "r") as handle:
|
||||||
for line in handle:
|
for line in handle:
|
||||||
obj = json.loads(line)
|
obj = json.loads(line)
|
||||||
embeddings.append(obj["rainfall"])
|
embeddings.append(obj["rainfall"])
|
||||||
|
@ -46,7 +46,7 @@ def run(args):
|
||||||
|
|
||||||
|
|
||||||
embeddings = []
|
embeddings = []
|
||||||
with handle_open(filepath_input, "w") as handle:
|
with handle_open(filepath_input, "r") as handle:
|
||||||
for line in handle:
|
for line in handle:
|
||||||
obj = json.loads(line)
|
obj = json.loads(line)
|
||||||
embeddings.append(obj["water"])
|
embeddings.append(obj["water"])
|
||||||
|
|
Loading…
Reference in a new issue