Skip to content

Commit

Permalink
NiFi: cohort script update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Jul 6, 2024
1 parent c69c52e commit 8703264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nifi/user-scripts/cogstack_cohort_generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def multiprocess_annotation_records(doc2ptt: dict, input_annotations: dict):

# dump patients for future ref
doc2ptt_path = os.path.join(OUTPUT_FOLDER_PATH, "doc2ptt.json")
dict2json_truncate_add_to_file(global_doc2ptt, doc2ptt_path)
with open(doc2ptt_path, "a+") as doc2ptt_file:
doc2ptt_file.write(json.dumps(global_doc2ptt))

# if we have no patients, perhaps we have a list that is already present, ready to be used
# so that we only care about generating the annotations...
Expand Down

0 comments on commit 8703264

Please sign in to comment.