Repository navigation
Conversation
geo2r now returns a CAPTCHA page to scripted requests, which broke CI on master. The test stubs the metadata call, and _create_metadata raises a clear error when the response is not JSON.
NHANES_2010, NHANES_2012 and FHS have no samples field, so the data table step of doc/generate.py raised KeyError and broke make html.
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.
What
doc/generate.pycrashes on master while writinggenerated/data_table.csv:The NHANES_2010, NHANES_2012 and FHS entries added in #203 have no
samplesfield, and the generator indexed it directly.make htmlruns this script first, so the docs build fails.How
samplesis only read by the doc generator and nothing in the loader requires it, so it is treated as optional: missing counts render asN/A, the same placeholder the model table uses. Sample counts were not added tolibrary.yamlbecause the clinical cohorts don't have one fixed number that would be accurate to publish.Verification
python doc/generate.pyexits 1 on master and 0 here.data_table.csvhas all 48 library entries.make check-formatclean.make test: 202 passed, 5 skipped, 0 failed.Depends on #218
This branch is stacked on #218, which fixes the CI failure every PR currently hits. Merge #218 first and this diff reduces to the one-line change in
doc/generate.py.Follow-up (not in this PR)
The new NHANES and FHS rows show
Age Present: NoandSex Present: No. That is wrong: both loaders provide age and sex (biolearn/load.py). The generator only looks at GEO-styleparser.metadata, which clinical entries don't use. Fixing that needs a way for non-GEO entries to declare their metadata and is better as its own change.