Skip to content

Commit

Permalink
Move the Extract-represent-validate-notebook to here (#53)
Browse files Browse the repository at this point in the history
* update notebook title

* update notebook

* try without uv for build

* no uv

* more lenient build

* Update .readthedocs.yaml

Co-authored-by: Philipp A. <[email protected]>

* no lamin to make rtd work?

* updated notebook

* less dependencies doc?

* remove use of lamindb docs temp

* add lamin again

* try slim vitessce for docs

* revert change

* revert more settings

* no ln.setup.init in conf.py

* no ln.setup.init in conf.p

* fix warnings doc build

* remove info lamin

* slight comment improvement

* remove commented code conf.py; simpler image display notebook

* removed some comments

---------

Co-authored-by: Philipp A. <[email protected]>
  • Loading branch information
eroell and flying-sheep authored Oct 16, 2024
1 parent a2b8215 commit 2518294
Show file tree
Hide file tree
Showing 9 changed files with 1,988 additions and 1,148 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
.. autosummary::
:toctree: generated
io.omop.setup_obs
io.omop.setup_variables
io.omop.get_time_interval_table
io.omop.load
io.omop.extract_person
io.omop.extract_observation_period
Expand Down
13 changes: 3 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
from __future__ import annotations

# -- Path setup --------------------------------------------------------------
from contextlib import suppress
import sys
from datetime import datetime
from importlib.metadata import metadata
from pathlib import Path
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from sphinx.application import Sphinx
pass


HERE = Path(__file__).parent
Expand Down Expand Up @@ -146,18 +145,12 @@
("py:class", "duckdb.duckdb.DuckDBPyConnection"),
# Is documented as a py:attribute instead
("py:class", "numpy.int64"),
# For now not in public facing API
("py:class", "awkward.highlevel.Array"),
]

# Redirect broken parameter annotation classes
qualname_overrides = {
"zarr._storage.store.Store": "zarr.storage.MemoryStore",
"lnschema_core.models.Artifact": "lamindb.Artifact",
}


def setup(app: Sphinx) -> None:
"""Setup lamindb for CI."""
import lamindb as ln

with suppress(RuntimeError):
ln.setup.init(storage="/tmp/lamindb")
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ changelog.md
contributing.md
references.md
notebooks/tutorial_omop_visualization
notebooks/omop_tables_tutorial
notebooks/tutorial_ehrdata_omop
notebooks/cohort_definition
notebooks/study_design_example_omop_cdm
notebooks/indwelling_arterial_catheters
Expand Down
Loading

0 comments on commit 2518294

Please sign in to comment.