Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write json file containing list of available fields #560

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Write json file containing list of available fields
  • Loading branch information
bfhealy committed Mar 28, 2024
commit dfc4a1336d5390352c26e010dc9b3b061bfda22a
7 changes: 6 additions & 1 deletion tools/combine_preds.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,15 @@ def combine_preds(
str(x).split("/")[-1].split(".")[0]
for x in (path_to_preds / combined_preds_dirname).glob("field_*.parquet")
]
done_fields.sort()

# Write json file containing field list
with open(path_to_preds / combined_preds_dirname / "fields.json", "w") as f:
json.dump(done_fields, f)

preds_to_save = None
counter = 0
print(f"Processing {len(fields_dnn_dict)} fields/files...")
print(f"Processing {len(fields_dnn_dict) - len(done_fields)} fields/files...")

for field in fields_dnn_dict.keys():
if field not in done_fields:
Expand Down
Loading