Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Dec 30, 2023
1 parent 45f2d36 commit 5c5831e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.10]
python-version: ["3.10"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.10]
python-version: ["3.10"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -58,7 +58,7 @@ jobs:
# strategy:
# fail-fast: false
# matrix:
# python-version: [3.10]
# python-version: ["3.10"]
# os: [macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
Expand All @@ -76,7 +76,7 @@ jobs:
# strategy:
# fail-fast: false
# matrix:
# python-version: [3.10]
# python-version: ["3.10"]
# os: [windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
Expand Down
5 changes: 1 addition & 4 deletions scdataloader/data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import json
from dataclasses import dataclass, field
from pathlib import Path
from typing import List, Optional, Union

import pandas as pd
from torch.utils.data import Dataset as torchDataset
Expand Down Expand Up @@ -200,7 +197,7 @@ def use_prior_network(
)
self.add_prior_network(net)

def add_prior_network(self, prior_network: pd.DataFrame):
def add_prior_network(self, prior_network: pd.DataFrame, init_len):
# validate the network dataframe
required_columns: list[str] = ["target", "regulators"]
optional_columns: list[str] = ["type", "weight"]
Expand Down
9 changes: 1 addition & 8 deletions scdataloader/mapped.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import Counter
from functools import reduce
from os import PathLike
from typing import List, Literal, Optional, Union, Iterable
from typing import List, Literal, Optional, Union

import numpy as np
import pandas as pd
Expand All @@ -15,13 +15,6 @@
registry,
)
from lamin_utils import logger
from lnschema_core.models import (
Data,
Run,
__repr__,
)
from lamindb.dev._settings import settings
from lamindb.dev._run_context import run_context
from lamindb.dev._data import _track_run_input


Expand Down
2 changes: 1 addition & 1 deletion scdataloader/preprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Optional, Union, Callable
from typing import Optional, Union, Callable
from django.db import IntegrityError

import numpy as np
Expand Down

0 comments on commit 5c5831e

Please sign in to comment.