Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kanesoban committed Dec 2, 2024
1 parent a4481b7 commit 81f3702
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/neuroagent/cell_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CellTypesMeta:
"""

def __init__(self) -> None:
self.name_: dict[str, str] = {}
self.name_: dict[str, str | None] = {}
self.descendants_ids: dict[str, set[str]] = {}

def descendants(self, ids: str | set[str]) -> set[str]:
Expand Down
2 changes: 1 addition & 1 deletion swarm_copy/cell_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CellTypesMeta:
"""

def __init__(self) -> None:
self.name_: dict[str, str] = {}
self.name_: dict[str, str | None] = {}
self.descendants_ids: dict[str, set[str]] = {}

def descendants(self, ids: str | set[str]) -> set[str]:
Expand Down
10 changes: 4 additions & 6 deletions swarm_copy/tools/bluenaas_memodel_getall.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ class InputMEModelGetAll(BaseModel):
page_size: int = Field(
default=20, description="Number of results returned by the API."
)
memodel_type: Literal["single-neuron-simulation", "synaptome-simulation"] = (
Field(
default="single-neuron-simulation",
description="Type of simulation to retrieve.",
)
memodel_type: Literal["single-neuron-simulation", "synaptome-simulation"] = Field(
default="single-neuron-simulation",
description="Type of simulation to retrieve.",
)


Expand All @@ -57,7 +55,7 @@ async def arun(self) -> PaginatedResponseUnionMEModelResponseSynaptomeModelRespo
response = await self.metadata.httpx_client.get(
url=f"{self.metadata.bluenaas_url}/neuron-model/{self.metadata.vlab_id}/{self.metadata.project_id}/me-models",
params={
"simulation_type": self.input_schema.simulation_type,
"simulation_type": self.input_schema.memodel_type,
"offset": self.input_schema.offset,
"page_size": self.input_schema.page_size,
},
Expand Down

0 comments on commit 81f3702

Please sign in to comment.