Skip to content

Commit

Permalink
Misc fixes (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Oct 9, 2024
1 parent 5a77749 commit bdba66f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"anndata": ("https://anndata.readthedocs.io/en/stable/", None),
"scanpy": ("https://scanpy.readthedocs.io/en/stable/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"anndata": ("https://anndata.readthedocs.io/en/stable", None),
"scanpy": ("https://scanpy.readthedocs.io/en/stable", None),
"numpy": ("https://numpy.org/doc/stable", None),
}

# List of patterns, relative to source directory, that match files and
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "ehrdata"
version = "0.0.1"
description = "A Python package for EHR data"
readme = "README.md"
license = { file = "LICENSE" }
license = "Apache-2.0"
maintainers = [
{ name = "Eljas Roellin", email = "[email protected]" },
]
Expand Down Expand Up @@ -36,7 +36,7 @@ optional-dependencies.dev = [
]
optional-dependencies.doc = [
"docutils>=0.8,!=0.18.*,!=0.19.*",
"ehrapy[lamin]",
"ehrdata[lamin]",
"ipykernel",
"ipython",
"myst-nb>=1.1",
Expand Down
5 changes: 1 addition & 4 deletions src/ehrdata/core/ehrdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ def layers(self, key, input):
@property
def r(self):
"""3-Dimensional tensor, aligned with obs along first axis, var along second axis, and allowing a 3rd axis."""
if R_LAYER_KEY not in self._adata.layers.keys():
return None
else:
return self._adata.layers[R_LAYER_KEY]
return self._adata.layers.get(R_LAYER_KEY)

@r.setter
def r(self, input):
Expand Down
2 changes: 2 additions & 0 deletions src/ehrdata/pl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__all__ = ["BasicClass", "basic_plot"]

from .basic import BasicClass, basic_plot

1 comment on commit bdba66f

@eroell
Copy link
Contributor

@eroell eroell commented on bdba66f Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, thank you so much!

Please sign in to comment.