Skip to content

Commit

Permalink
Issue with c1xxx ids
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Oct 4, 2024
1 parent 8be9c48 commit fd70559
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bids_prov/spm/spm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ def get_records(task_groups: dict, agent_id: str, verbose=False) -> dict:
for idx, entity in enumerate(output_ext_entities):
input_ent = find_entity_from_id(output_id, records["Entities"])
entity['Label'] = f"{entity['Label']}{str(idx + 1)}"
entity['AtLocation'] = f"c{str(idx + 1)}{input_ent['Label']}"
new_at_location = f"c{str(idx + 1)}{input_ent['Label']}"
entity['AtLocation'] = new_at_location
entity['@id'] = get_entity_urn(new_at_location)
add_ext_entity = 1

# TO DO whatif multiple
Expand Down

0 comments on commit fd70559

Please sign in to comment.