Skip to content

Conversation

@oesteban
Copy link
Member

Resolves: #239.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +177 to +182
write_derivative_description(
config.execution.bids_dir,
config.execution.output_dir,
dataset_links=config.execution.dataset_links,
)
write_bidsignore(config.execution.output_dir)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Write dataset metadata into parent output directory for legacy layout

The new calls to write_derivative_description and write_bidsignore now use config.execution.output_dir instead of config.execution.dmriprep_dir. In the legacy output layout, output_dir points to the derivatives root while dmriprep_dir is the actual dMRIPrep subdirectory. This change writes dataset_description.json and .bidsignore one level too high, so the dMRIPrep derivative no longer contains its own metadata and the ignore file applies to every derivative under the parent folder. Users who choose the legacy layout will end up with a non-BIDS-compliant dMRIPrep folder and potentially unexpected ignores for other pipelines.

Useful? React with 👍 / 👎.

@oesteban oesteban merged commit bf0475b into master Oct 27, 2025
15 checks passed
@oesteban oesteban deleted the fix/239 branch October 27, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportError write_bidsignore not defined in dmriprep.utils.bids

2 participants