Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Formalize presence of optional logs/ folder #1962

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Collaborator

@yarikoptic yarikoptic commented Oct 17, 2024

It is quite often desired to store logs, e.g. simply stdout/stderr from invocation of BIDS converters or other tools which were used to produce/change content in current BIDS datasset. They quite often provide ultimate provenance information to troubleshoot odd or incorrect results. But researchers, in my personal opinion, undervalue logs! But hinting them on "standard" location for them, I think we could inspire more of relevant to dataset provenance metadata being collected and shared.

TODOs:

  • ?Danger: might leak sensitive metadata, so may be wording should be adjusted to mention that they should be inspected/sensored? WDYT? I think it is fine/assumed

Shameless plug: consider using con-duct (https://github.com/con/duct) for your "logging needs".

Note that I think that ideally the logs/ should not include "derivative" data, such as e.g. output of bids-validator. Those outputs should go under derivatives/bids-validator-{version}/output.json or alike. (It might be the only reasonable "derivative" to recommend bundling with any "raw" or derived BIDS dataset).

It is quite often desired to store logs, e.g. simply stdout/stderr from
invocation of BIDS converters or other tools which were used to produce/change
content in current BIDS datasset.  They quite often provide ultimate provenance
information to troubleshoot odd or incorrect results.  But researchers, in my
personal opinion, undervalue logs!  But hinting them on "standard" location for
them, I think we could inspire more of relevant to dataset provenance metadata
being collected and shared.  Dangers: might leak sensitive metadata, so may be
wording should be adjusted to mention that they should be
inspected/sensored.

Shameless plug: consider using con-duct (https://github.com/con/duct) for your
"logging needs".

Note that I think that ideally the `logs/` should not include "derivative"
data, such as e.g. output of `bids-validator`.  Those outputs should go under
`derivatives/bids-validator-{version}/output.json` or alike.  (It might be the
only reasonable "derivative" to recommend bundling with any "raw" or
derived BIDS dataset).
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.87%. Comparing base (7ddb7be) to head (1a50063).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1962   +/-   ##
=======================================
  Coverage   86.87%   86.87%           
=======================================
  Files          16       16           
  Lines        1410     1410           
=======================================
  Hits         1225     1225           
  Misses        185      185           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant