Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommunicationParameterRef: add a _build_odxlinks() method #134

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions odxtools/communicationparameter.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2022 MBition GmbH
import warnings
from typing import Any, List, Optional, Union
from typing import Any, Dict, List, Optional, Union

from .comparam_subset import (BaseComparam, Comparam, ComplexComparam, ComplexValue,
create_complex_value_from_et)
from .diaglayertype import DiagLayerType
from .exceptions import OdxWarning
from .odxlink import OdxDocFragment, OdxLinkDatabase, OdxLinkRef
from .odxlink import OdxDocFragment, OdxLinkDatabase, OdxLinkId, OdxLinkRef
from .utils import create_description_from_et


Expand Down Expand Up @@ -76,6 +76,9 @@ def __repr__(self) -> str:
def __str__(self) -> str:
return self.__repr__()

def _build_odxlinks(self) -> Dict[OdxLinkId, Any]:
return {}

def _resolve_references(self, odxlinks: OdxLinkDatabase):
# Temporary lenient until tests are updated
self.comparam = odxlinks.resolve_lenient(self.id_ref)
Expand Down
1 change: 1 addition & 0 deletions odxtools/diaglayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _build_odxlinks(self) -> Dict[OdxLinkId, Any]:
for obj in chain(
self._local_services,
self._local_single_ecu_jobs,
self._local_communication_parameters,
self.requests,
self.positive_responses,
self.negative_responses,
Expand Down