Skip to content

Commit

Permalink
Update baselib and use Optional (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
Co-authored-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh and hoangtungdinh authored Oct 7, 2024
1 parent c48d888 commit ab8e363
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 92 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,21 @@ asam-qc-opendrive can be installed using pip or from source.
asam-qc-opendrive can be installed using pip, so that it can be used as a library or
as an application.

**From PyPi**

```bash
pip install asam-qc-opendrive
```

**From GitHub repository**

```bash
pip install asam-qc-opendrive@git+https://github.com/asam-ev/qc-opendrive@main
```

**Note:** The above command will install `asam-qc-opendrive` from the `main` branch. If you want to install `asam-qc-opendrive` from another branch or tag, replace `@main` with the desired branch or tag. It is also possible to install from a local directory.
The above command will install `asam-qc-opendrive` from the `main` branch. If you want to install `asam-qc-opendrive` from another branch or tag, replace `@main` with the desired branch or tag.

**From a local repository**

```bash
pip install /home/user/qc-opendrive
Expand Down
28 changes: 12 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.10"
asam-qc-baselib = {git = "https://github.com/asam-ev/qc-baselib-py.git", rev = "develop"}
asam-qc-baselib = "^1.0.0rc1"
lxml = "^5.2.2"
numpy = "^1.26.0"
scipy = "^1.14.0"
Expand Down
6 changes: 3 additions & 3 deletions qc_opendrive/base/models.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from dataclasses import dataclass
from enum import Enum
from lxml import etree
from typing import Union
from typing import Union, Optional

from qc_baselib import Configuration, Result


@dataclass
class CheckerData:
xml_file_path: str
input_file_xml_root: Union[None, etree._ElementTree]
input_file_xml_root: Optional[etree._ElementTree]
config: Configuration
result: Result
schema_version: Union[None, str]
schema_version: Optional[str]


class LinkageTag(str, Enum):
Expand Down
Loading

0 comments on commit ab8e363

Please sign in to comment.