Skip to content

Commit

Permalink
[BUG] Agent ids on all parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Oct 4, 2024
1 parent 6aa1fcf commit 8be9c48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bids_prov/afni/afni_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def build_records(commands_block: list, agent_id: str, verbose: bool = False):
activity = {
"@id": get_activity_urn(activity_label),
"Label": activity_label,
"AssociatedWith": "urn:" + agent_id,
"AssociatedWith": agent_id,
"Command": cmd,
"Parameters": param_dic,
"Used": list(),
Expand Down
2 changes: 1 addition & 1 deletion bids_prov/fsl/fsl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def build_records(groups: Mapping[str, List[str]], agent_id: str, verbose: bool
activity = {
"@id": get_activity_urn(activity_label),
"Label": activity_label,
"AssociatedWith": "urn:" + agent_id,
"AssociatedWith": agent_id,
"Command": cmd,
# "attributes": [
# {k: v if len(v) > 1 else v[0]} for k, v in attributes.items()
Expand Down
2 changes: 1 addition & 1 deletion bids_prov/spm/spm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def get_records(task_groups: dict, agent_id: str, verbose=False) -> dict:
activity = {"@id": activity_id,
"Label": activity_label,
"Used": list(),
"AssociatedWith": "urn:" + agent_id,
"AssociatedWith": agent_id,
"Command": command
}

Expand Down

0 comments on commit 8be9c48

Please sign in to comment.