Revise 101-127-yoda to not imply an "output" directory #1269

Open
opened 2025-07-12 13:22:42 +00:00 by mih · 1 comment
mih commented 2025-07-12 13:22:42 +00:00 (Migrated from github.com)

Feedback revealed that the specific presentation in this chapter led to the conclusion that outputs need to be written into some kind of top-level "outputs" directory in order to be YODA-compliant.

This is not the case and the chapter should be revised to avoid this impression.

One pragmatic reasons is this: When such a dataset becomes an input for another, the resulting file paths would be something like /inputs/outputs/somefile.dat. It would make more sense to have outputs/ (only) be some semantic grouping (if even needed), and otherwise consider the entire dataset an "output" of the process/study captured by that dataset.

Feedback revealed that the specific presentation in this chapter led to the conclusion that outputs need to be written into some kind of top-level "outputs" directory in order to be YODA-compliant. This is not the case and the chapter should be revised to avoid this impression. One pragmatic reasons is this: When such a dataset becomes an input for another, the resulting file paths would be something like `/inputs/outputs/somefile.dat`. It would make more sense to have `outputs/` (only) be some semantic grouping (if even needed), and otherwise consider the entire dataset an "output" of the process/study captured by that dataset.
adswa commented 2025-07-12 17:34:30 +00:00 (Migrated from github.com)

I read through the chapter, and I'm not sure I'm finding the place that would encourage creating an "outputs" directory at the top level.
The chapter promotes an "inputs" and a "code" directory, but nothing specific for outputs:

Store input data for an analysis in a dedicated inputs/ directory. Keep different formats or processing-stages of your input data as individual, modular components: Do not mix raw data, data that is already structured following community guidelines of the given field, or preprocessed data, but create one data component for each of them. And if your analysis relies on two or more data collections, these collections should each be an individual component, not combined into one.

Store scripts or code used for the analysis of data in a dedicated code/ directory, outside of the data component of the dataset.

Collect results of an analysis in a dedicated place, outside of the inputs/ directory, and leave the input data of an analysis untouched by your computations.

I grepped through the text, and the word "outputs" is used (as in: results one computed), but never as a directory or path.

The only exception is the "bad practice" example directory structure at the beginning of the chapter, which includes an outputs directory - but it also pretty clearly says that this isn't how things should be done.

I think the only thing I can change is add some for of remark or footnote that naming "the dedicated place" outputs isn't a good choice.

I read through the chapter, and I'm not sure I'm finding the place that would encourage creating an "outputs" directory at the top level. The chapter promotes an "inputs" and a "code" directory, but nothing specific for outputs: > Store input data for an analysis in a dedicated inputs/ directory. Keep different formats or processing-stages of your input data as individual, modular components: Do not mix raw data, data that is already structured following community guidelines of the given field, or preprocessed data, but create one data component for each of them. And if your analysis relies on two or more data collections, these collections should each be an individual component, not combined into one. > Store scripts or code used for the analysis of data in a dedicated code/ directory, outside of the data component of the dataset. > Collect results of an analysis in a dedicated place, outside of the inputs/ directory, and leave the input data of an analysis untouched by your computations. I grepped through the text, and the word "outputs" is used (as in: results one computed), but never as a directory or path. The only exception is the "bad practice" example directory structure at the beginning of the chapter, which includes an outputs directory - but it also pretty clearly says that this isn't how things should be done. I think the only thing I can change is add some for of remark or footnote that naming "the dedicated place" outputs isn't a good choice.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
handbook/book#1269
No description provided.