Skip to content

Commit

Permalink
Remove ignored doctests now Xarray>0.18.2 has been released (with pyd…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Oct 7, 2022
1 parent 4b66715 commit 29b1665
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ bgen =
fail_under = 100

[tool:pytest]
# TODO: remove ignored doctests below once Xarray>0.18.2 is released (with https://github.com/pydata/xarray/pull/4753)
addopts = --doctest-modules --ignore=validation --cov-fail-under=100 --ignore=sgkit/stats/regenie.py --ignore=sgkit/stats/pca.py
addopts = --doctest-modules --ignore=validation --cov-fail-under=100
norecursedirs = .eggs build docs
filterwarnings =
error
Expand Down
7 changes: 4 additions & 3 deletions sgkit/stats/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ def pca(
... )
>>> ds.compute() # doctest: +NORMALIZE_WHITESPACE
<xarray.Dataset>
Dimensions: (components: 2, samples: 150, variants: 100)
Dimensions without coordinates: components, samples, variants
Dimensions: (samples: 150, components: 2,
variants: 100)
Dimensions without coordinates: samples, components, variants
Data variables:
sample_pca_projection (samples, components) float32 0.0103...
sample_pca_component (variants, components) float32 0.096...
Expand All @@ -273,7 +274,7 @@ def pca(
... .plot.scatter(x=("sample_pca_projection", 0), y=("sample_pca_projection", 1))
... )
>>> ax
<AxesSubplot:xlabel='(sample_pca_projection, 0)', ylabel='(sample_pca_projection, 1)'>
<AxesSubplot: xlabel='(sample_pca_projection, 0)', ylabel='(sample_pca_projection, 1)'>
References
----------
Expand Down
5 changes: 3 additions & 2 deletions sgkit/stats/regenie.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,9 @@ def regenie(
>>> res = regenie(ds, dosage="call_dosage", covariates="sample_covariate", traits="sample_trait", merge=False)
>>> res.compute() # doctest: +NORMALIZE_WHITESPACE
<xarray.Dataset>
Dimensions: (alphas: 5, blocks: 2, contigs: 2, outcomes: 5, samples: 50)
Dimensions without coordinates: alphas, blocks, contigs, outcomes, samples
Dimensions: (blocks: 2, alphas: 5, samples: 50, outcomes: 5,
contigs: 2)
Dimensions without coordinates: blocks, alphas, samples, outcomes, contigs
Data variables:
regenie_base_prediction (blocks, alphas, samples, outcomes) float64 0.33...
regenie_meta_prediction (samples, outcomes) float64 -0.4588 0.78 ... 0.3734
Expand Down

0 comments on commit 29b1665

Please sign in to comment.