Skip to content

Commit

Permalink
Expose functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Sep 19, 2024
1 parent a7f7bb8 commit 7fe6fc4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
18 changes: 18 additions & 0 deletions src/dummy_anndata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
from importlib.metadata import version

from .generate_vector import generate_vector, vector_generators
from .generate_matrix import generate_matrix, matrix_generators
from .generate_dict import generate_scalar, generate_dict, scalar_generators
from .generate_dataframe import generate_dataframe
from .generate_dataset import generate_dataset

__all__ = [
"generate_vector",
"generate_matrix",
"generate_scalar",
"generate_dict",
"generate_dataframe",
"generate_dataset",
"vector_generators",
"matrix_generators",
"scalar_generators"
]

__version__ = version("dummy-anndata")
2 changes: 1 addition & 1 deletion src/dummy_anndata/generate_dataframe.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pandas as pd
from generate_vector import vector_generators
from .generate_vector import vector_generators


def generate_dataframe(n_rows, types=None):
Expand Down
8 changes: 4 additions & 4 deletions src/dummy_anndata/generate_dataset.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import anndata as ad

from generate_matrix import matrix_generators
from generate_vector import vector_generators
from generate_dataframe import generate_dataframe
from generate_dict import scalar_generators, generate_dict
from .generate_matrix import matrix_generators
from .generate_vector import vector_generators
from .generate_dataframe import generate_dataframe
from .generate_dict import scalar_generators, generate_dict


def generate_dataset(
Expand Down
4 changes: 2 additions & 2 deletions src/dummy_anndata/generate_dict.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from generate_vector import vector_generators
from generate_matrix import matrix_generators
from .generate_vector import vector_generators
from .generate_matrix import matrix_generators

import pandas as pd
import numpy as np
Expand Down

0 comments on commit 7fe6fc4

Please sign in to comment.