Skip to content

Commit

Permalink
⬆️ Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyosun committed Nov 21, 2024
1 parent 0fd4e5b commit 3abf046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cellregistry/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Meta(Record.Meta, TracksRun.Meta, TracksUpdates.Meta):
"""Internal id, valid only in one DB instance."""
uid: str = CharField(unique=True, max_length=20, default=ids.base62_20)
"""Universal id, valid across DB instances."""
name: str = CharField(max_length=255, default=None, unique=True, db_index=True)
name: str = CharField(unique=True, db_index=True)
"""A unique name for the cell.
It's typically the barcode combined with an identifier for the dataset that
Expand All @@ -46,7 +46,7 @@ class Meta(Record.Meta, TracksRun.Meta, TracksUpdates.Meta):
Pan_T7935494_ATCATGGTCTACCTGC
"""
description: str = CharField(max_length=255, db_index=True, null=True, default=None)
description: str | None = CharField(db_index=True, null=True)
"""A description."""
# ulabels: ULabel = models.ManyToManyField(
# ULabel, through="CellULabel", related_name="cells"
Expand All @@ -73,7 +73,7 @@ class CellCellType:
cell: Cell = ForeignKey(Cell, CASCADE, related_name="links_cell_type")
# follow the .lower() convention in link models
celltype: CellType = ForeignKey(CellType, PROTECT, related_name="links_cell")
feature: Feature = ForeignKey(
feature: Feature | None = ForeignKey(
Feature, PROTECT, null=True, default=None, related_name="links_cellcelltype"
)

Expand All @@ -82,6 +82,6 @@ class CellULabel:
id: int = models.BigAutoField(primary_key=True)
cell: Cell = ForeignKey(Cell, CASCADE, related_name="links_ulabel")
ulabel: ULabel = ForeignKey(ULabel, PROTECT, related_name="links_cell")
feature: Feature = ForeignKey(
feature: Feature | None = ForeignKey(
Feature, PROTECT, null=True, default=None, related_name="links_cellulabel"
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [{name = "Lamin Labs", email = "[email protected]"}]
readme = "README.md"
dynamic = ["version", "description"]
dependencies = [
"lamindb"
"lamindb[bionty]>=0.77.0"
]

[project.urls]
Expand Down

0 comments on commit 3abf046

Please sign in to comment.