mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25: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")
|
||||
|
||||
embeddings = []
|
||||
with handle_open(filepath_input, "w") as handle:
|
||||
with handle_open(filepath_input, "r") as handle:
|
||||
for line in handle:
|
||||
obj = json.loads(line)
|
||||
embeddings.append(obj["rainfall"])
|
||||
|
@ -46,7 +46,7 @@ def run(args):
|
|||
|
||||
|
||||
embeddings = []
|
||||
with handle_open(filepath_input, "w") as handle:
|
||||
with handle_open(filepath_input, "r") as handle:
|
||||
for line in handle:
|
||||
obj = json.loads(line)
|
||||
embeddings.append(obj["water"])
|
||||
|
|
Loading…
Reference in a new issue