Skip to content

Commit

Permalink
Fix type annotation and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gacou54 committed Sep 14, 2023
1 parent 8acb789 commit 1123d70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pyorthanc/_find.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from typing import Dict, List, Union

from .client import Orthanc
from ._resources.instance import Instance
from ._resources.patient import Patient
from ._resources.resource import Resource
from ._resources.series import Series
from ._resources.study import Study
from .client import Orthanc

DEFAULT_RESOURCES_LIMIT = 1_000


def find_patients(client: Orthanc,
query: Dict[str, str] = None,
labels: Union[list[str], str] = None,
labels: Union[List[str], str] = None,
labels_constraint: str = 'All') -> List[Patient]:
"""Finds patients in Orthanc according to queries and labels
Expand Down Expand Up @@ -56,7 +56,7 @@ def find_patients(client: Orthanc,

def find_studies(client: Orthanc,
query: Dict[str, str] = None,
labels: Union[list[str], str] = None,
labels: Union[List[str], str] = None,
labels_constraint: str = 'All') -> List[Study]:
"""Finds studies in Orthanc according to queries and labels
Expand Down Expand Up @@ -101,7 +101,7 @@ def find_studies(client: Orthanc,

def find_series(client: Orthanc,
query: Dict[str, str] = None,
labels: Union[list[str], str] = None,
labels: Union[List[str], str] = None,
labels_constraint: str = 'All') -> List[Series]:
"""Finds series in Orthanc according to queries and labels
Expand Down Expand Up @@ -145,7 +145,7 @@ def find_series(client: Orthanc,

def find_instances(client: Orthanc,
query: Dict[str, str] = None,
labels: Union[list[str], str] = None,
labels: Union[List[str], str] = None,
labels_constraint: str = 'All') -> List[Instance]:
"""Finds instances in Orthanc according to queries and labels
Expand Down Expand Up @@ -190,7 +190,7 @@ def find_instances(client: Orthanc,
def query_orthanc(client: Orthanc,
level: str,
query: Dict[str, str] = None,
labels: Union[list[str], str] = None,
labels: Union[List[str], str] = None,
labels_constraint: str = 'All',
limit: int = DEFAULT_RESOURCES_LIMIT,
since: int = 0,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyorthanc"
version = "1.12.1"
version = "1.12.2"
description = "Orthanc REST API python wrapper with additional utilities"
authors = [
"Gabriel Couture <[email protected]>",
Expand All @@ -10,7 +10,7 @@ license = "MIT"
readme = 'README.md'
homepage = "https://gacou54.github.io/pyorthanc/"
repository = "https://github.com/gacou54/pyorthanc"
keywords = ["Orthanc", "DICOM", "Medical Imaging"]
keywords = ["Orthanc", "DICOM", "Medical-Imaging"]


[tool.poetry.dependencies]
Expand Down

0 comments on commit 1123d70

Please sign in to comment.