From 839675bf8191871e057054fb09c57ab777eb73f5 Mon Sep 17 00:00:00 2001 From: Parashar Date: Fri, 26 Jul 2024 12:51:47 +0200 Subject: [PATCH] update requirements --- .github/workflows/publish.yml | 2 +- .github/workflows/pytest.yml | 3 ++- scarf/metadata.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 58128c2..79d2eb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 6c493d6..5e02cdc 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -26,8 +26,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest pytest-cov topacedo anndata pcst_fast pip install -r requirements.txt + pip install -r requirements_extra.txt + pip install pytest pytest-cov topacedo anndata pcst_fast - name: Test with pytest run: | pytest --cov=. diff --git a/scarf/metadata.py b/scarf/metadata.py index 2027848..9c03459 100644 --- a/scarf/metadata.py +++ b/scarf/metadata.py @@ -393,7 +393,7 @@ def insert( self, column_name: str, values: Union[np.ndarray, List], - fill_value: Any = np.NaN, + fill_value: Any = np.nan, key: str = "I", overwrite: bool = False, location: str = "primary", @@ -404,7 +404,7 @@ def insert( Args: column_name (str): Name of column to modify. values (np.array): Values the column should contain. - fill_value (Any = np.NaN): Value to fill unassigned slots with. + fill_value (Any = np.nan): Value to fill unassigned slots with. key (str = 'I'): overwrite (bool = False): Should function overwrite column if it already exists? location (str = 'primary'):