Repository navigation
[ENH] size of the datasets without their derivatives and sourcedata folders - #32
Merged
Merged
Conversation
…olders - new field raw_size: the size in bytes of the annexed files of the last commit (git annex find --branch=HEAD, from the size in their git-annex keys, even if their content is not downloaded), without the derivatives, sourcedata and source folders at the root of the dataset; can be updated with bids_inventory update --fields raw_size - wrangle_data: size (and mean_size) in bytes from raw_size when known, otherwise from the size reported by datalad, now read in binary units (2.2 GB is 2.2 * 1024**3 bytes) - listings updated: 1,920 of 1,929 openneuro datasets (130.7 TB instead of 182.8 TB), and the 131 others Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The size of the datasets (
size, fromdatalad status --annex all) includes the content of theirderivativesandsourcedatafolders, which can be large and are not standardized.New field:
raw_sizederivatives,sourcedata(andsource) folders at the root of the dataset.git annex find --branch=HEAD --format='${bytesize}\t${file}\n'): fast (nodatalad status), even if the content of the files is not downloaded.bids_inventory update --fields raw_size(both sources).In the dashboard
wrangle_datagivessize(andmean_size, per participant) in bytes fromraw_sizewhen known, otherwise from the size reported by datalad. The sizes of datalad are now read in binary units (2.2 GBis 2.2 × 1024³ bytes, they were read as 2.2 × 10⁹).Listings
raw_sizefor 1,920 of the 1,929 datasets: 130.7 TB instead of 182.8 TB. Not for 6 datasets not installed locally yet, and 3 whose local copy is not initialized with git-annex (ds004186, ds004935, ds006391): they keep the size of datalad.size: it had been read from an older copy (for example ds006182: 6.7 GB in the superdataset from May 2025, 30.6 GiB in its copy from February 2026). Datasets with only derivatives (ds006253) have araw_sizeof 0.🤖 Generated with Claude Code